diff options
author | Andrei Karas <akaras@inbox.ru> | 2020-11-27 05:36:42 +0300 |
---|---|---|
committer | jak1 <mike.wollmann@gmail.com> | 2021-03-11 20:57:13 +0000 |
commit | 7124d95d082d77b7e00447a4ecad094e575e8fa9 (patch) | |
tree | c609a913d6ac659e08b1b6d81446e4af984773d2 /src/graphicsmanager.h | |
parent | 54b88d05bbbe616c05814d57cc4f86de649ce98c (diff) | |
download | manaverse-7124d95d082d77b7e00447a4ecad094e575e8fa9.tar.gz manaverse-7124d95d082d77b7e00447a4ecad094e575e8fa9.tar.bz2 manaverse-7124d95d082d77b7e00447a4ecad094e575e8fa9.tar.xz manaverse-7124d95d082d77b7e00447a4ecad094e575e8fa9.zip |
Silence warning -Wredundant-decls in SDL 1.2 code
Also switch in debug build script to gcc 10.
Diffstat (limited to 'src/graphicsmanager.h')
-rw-r--r-- | src/graphicsmanager.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/graphicsmanager.h b/src/graphicsmanager.h index 2811bc0ec..5d4c6d8b2 100644 --- a/src/graphicsmanager.h +++ b/src/graphicsmanager.h @@ -35,10 +35,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 <SDL_opengl.h> +PRAGMA45(GCC diagnostic pop) PRAGMA48(GCC diagnostic pop) #ifdef HAVE_GLEXT +PRAGMA45(GCC diagnostic push) +PRAGMA45(GCC diagnostic ignored "-Wredundant-decls") #include <GL/glext.h> +PRAGMA45(GCC diagnostic pop) #endif // HAVE_GLEXT // hack to hide warnings #undef GL_GLEXT_VERSION |