summaryrefslogtreecommitdiff
path: root/src/render/vertexes
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2020-11-27 05:36:42 +0300
committerjak1 <mike.wollmann@gmail.com>2021-03-11 20:57:13 +0000
commit7124d95d082d77b7e00447a4ecad094e575e8fa9 (patch)
treec609a913d6ac659e08b1b6d81446e4af984773d2 /src/render/vertexes
parent54b88d05bbbe616c05814d57cc4f86de649ce98c (diff)
downloadmv-7124d95d082d77b7e00447a4ecad094e575e8fa9.tar.gz
mv-7124d95d082d77b7e00447a4ecad094e575e8fa9.tar.bz2
mv-7124d95d082d77b7e00447a4ecad094e575e8fa9.tar.xz
mv-7124d95d082d77b7e00447a4ecad094e575e8fa9.zip
Silence warning -Wredundant-decls in SDL 1.2 code
Also switch in debug build script to gcc 10.
Diffstat (limited to 'src/render/vertexes')
-rw-r--r--src/render/vertexes/openglgraphicsvertexes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/vertexes/openglgraphicsvertexes.h b/src/render/vertexes/openglgraphicsvertexes.h
index 3bc7f7f52..32c176cf6 100644
--- a/src/render/vertexes/openglgraphicsvertexes.h
+++ b/src/render/vertexes/openglgraphicsvertexes.h
@@ -33,8 +33,12 @@
#endif // USE_SDL2
PRAGMA48(GCC diagnostic push)
PRAGMA48(GCC diagnostic ignored "-Wshadow")
+// ignore -Wredundant-decls for SDL 1.2
+PRAGMA45(GCC diagnostic push)
+PRAGMA45(GCC diagnostic ignored "-Wredundant-decls")
#define GL_GLEXT_LEGACY
#include <SDL_opengl.h>
+PRAGMA45(GCC diagnostic pop)
PRAGMA48(GCC diagnostic pop)
#endif // ANDROID