From e91ce102714be21098cfe490f4819a3396083747 Mon Sep 17 00:00:00 2001 From: Axel Nana Date: Sat, 26 Oct 2024 20:28:32 +0100 Subject: [PATCH] chore(build): Reduce warning messages. --- src/Utils/Audio/Compression/ADPCM/ADPCM.h | 8 ++++++++ src/Utils/SmMalloc/smmalloc.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Utils/Audio/Compression/ADPCM/ADPCM.h b/src/Utils/Audio/Compression/ADPCM/ADPCM.h index f6fed02e..1c2bfb14 100644 --- a/src/Utils/Audio/Compression/ADPCM/ADPCM.h +++ b/src/Utils/Audio/Compression/ADPCM/ADPCM.h @@ -22,9 +22,17 @@ #include +#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" diff --git a/src/Utils/SmMalloc/smmalloc.h b/src/Utils/SmMalloc/smmalloc.h index fbf9dd66..b8ef8e06 100644 --- a/src/Utils/SmMalloc/smmalloc.h +++ b/src/Utils/SmMalloc/smmalloc.h @@ -901,7 +901,7 @@ struct TlsPoolBucket } }; -static_assert(std::is_pod::value == true, "TlsPoolBucket must be POD type, stored in TLS"); +static_assert(std::is_standard_layout_v && std::is_trivial_v, "TlsPoolBucket must be POD type, stored in TLS"); static_assert(sizeof(TlsPoolBucket) <= 64, "TlsPoolBucket sizeof must be less than CPU cache line"); } // namespace internal