Disable stringop-overflow warning when including minimp3 since it produces false positives.

This commit is contained in:
binary1248 2023-04-01 02:48:15 +02:00 committed by Lukas Dürrenberger
parent 2151ea5c1d
commit 541e83ed12

View File

@ -34,12 +34,17 @@
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning(push) #pragma warning(push)
#pragma warning(disable : 4242 4244 4267 4456 4706) #pragma warning(disable : 4242 4244 4267 4456 4706)
#else
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif #endif
#include <minimp3_ex.h> #include <minimp3_ex.h>
#ifdef _MSC_VER #ifdef _MSC_VER
#pragma warning(pop) #pragma warning(pop)
#else
#pragma GCC diagnostic pop
#endif #endif
#undef NOMINMAX #undef NOMINMAX