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/safeopenglimagehelper.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resources/safeopenglimagehelper.h') diff --git a/src/resources/safeopenglimagehelper.h b/src/resources/safeopenglimagehelper.h index 7b2098b11..31ff4dac4 100644 --- a/src/resources/safeopenglimagehelper.h +++ b/src/resources/safeopenglimagehelper.h @@ -46,10 +46,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 -- cgit v1.2.3-70-g09d2