From 541e83ed12fe0199383b4d9e2a66274c8fc670f1 Mon Sep 17 00:00:00 2001 From: binary1248 Date: Sat, 1 Apr 2023 02:48:15 +0200 Subject: [PATCH] Disable stringop-overflow warning when including minimp3 since it produces false positives. --- src/SFML/Audio/SoundFileReaderMp3.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SFML/Audio/SoundFileReaderMp3.cpp b/src/SFML/Audio/SoundFileReaderMp3.cpp index d6e1f6a0..a332708c 100644 --- a/src/SFML/Audio/SoundFileReaderMp3.cpp +++ b/src/SFML/Audio/SoundFileReaderMp3.cpp @@ -34,12 +34,17 @@ #ifdef _MSC_VER #pragma warning(push) #pragma warning(disable : 4242 4244 4267 4456 4706) +#else +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstringop-overflow" #endif #include #ifdef _MSC_VER #pragma warning(pop) +#else +#pragma GCC diagnostic pop #endif #undef NOMINMAX