Skip to content

Commit

Permalink
Disable stringop-overflow warning when including minimp3 since it pro…
Browse files Browse the repository at this point in the history
…duces false positives.
  • Loading branch information
binary1248 authored and eXpl0it3r committed Apr 1, 2023
1 parent 2151ea5 commit 541e83e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/SFML/Audio/SoundFileReaderMp3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <minimp3_ex.h>

#ifdef _MSC_VER
#pragma warning(pop)
#else
#pragma GCC diagnostic pop
#endif

#undef NOMINMAX
Expand Down

0 comments on commit 541e83e

Please sign in to comment.