From 7124d95d082d77b7e00447a4ecad094e575e8fa9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 27 Nov 2020 05:36:42 +0300 Subject: Silence warning -Wredundant-decls in SDL 1.2 code Also switch in debug build script to gcc 10. --- src/render/vertexes/openglgraphicsvertexes.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/render/vertexes') 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 +PRAGMA45(GCC diagnostic pop) PRAGMA48(GCC diagnostic pop) #endif // ANDROID -- cgit v1.2.3-60-g2f50