Browse Source

Fix missing pragma push

I forgot to pragma push the ignored warning in #10877 this adds the
missing ones.
Hein-Pieter van Braam 8 năm trước cách đây
mục cha
commit
7df28d1799

+ 1 - 0
modules/stb_vorbis/audio_stream_ogg_vorbis.cpp

@@ -31,6 +31,7 @@
 
 #include "os/file_access.h"
 
+#pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
 #include "thirdparty/misc/stb_vorbis.c"
 #pragma GCC diagnostic pop

+ 1 - 0
modules/stb_vorbis/audio_stream_ogg_vorbis.h

@@ -34,6 +34,7 @@
 #include "servers/audio/audio_stream.h"
 
 #define STB_VORBIS_HEADER_ONLY
+#pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
 #include "thirdparty/misc/stb_vorbis.c"
 #pragma GCC diagnostic pop