Skip to content

Commit

Permalink
chore(build): Reduce warning messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
na2axl committed Oct 26, 2024
1 parent a62c934 commit e91ce10
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/Utils/Audio/Compression/ADPCM/ADPCM.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,17 @@

#include <SparkyStudios/Audio/Amplitude/Amplitude.h>

#ifndef WAVE_FORMAT_PCM
#define WAVE_FORMAT_PCM 0x1
#endif

#ifndef WAVE_FORMAT_IMA_ADPCM
#define WAVE_FORMAT_IMA_ADPCM 0x11
#endif

#ifndef WAVE_FORMAT_EXTENSIBLE
#define WAVE_FORMAT_EXTENSIBLE 0xfffe
#endif

#define HEADER_FMT_CHUNK "4L"
#define HEADER_FMT_FACT "4LL"
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/SmMalloc/smmalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ struct TlsPoolBucket
}
};

static_assert(std::is_pod<TlsPoolBucket>::value == true, "TlsPoolBucket must be POD type, stored in TLS");
static_assert(std::is_standard_layout_v<TlsPoolBucket> && std::is_trivial_v<TlsPoolBucket>, "TlsPoolBucket must be POD type, stored in TLS");
static_assert(sizeof(TlsPoolBucket) <= 64, "TlsPoolBucket sizeof must be less than CPU cache line");
} // namespace internal

Expand Down

0 comments on commit e91ce10

Please sign in to comment.