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/resources/image/image.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resources/image/image.h') diff --git a/src/resources/image/image.h b/src/resources/image/image.h index b15ff7d33..c8b1e9150 100644 --- a/src/resources/image/image.h +++ b/src/resources/image/image.h @@ -42,10 +42,17 @@ #endif // HAVE_GLEXT 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") #include +PRAGMA45(GCC diagnostic pop) PRAGMA48(GCC diagnostic pop) #ifdef HAVE_GLEXT +PRAGMA45(GCC diagnostic push) +PRAGMA45(GCC diagnostic ignored "-Wredundant-decls") #include +PRAGMA45(GCC diagnostic pop) #endif // HAVE_GLEXT #endif // ANDROID #endif // USE_OPENGL -- cgit v1.2.3-70-g09d2