fixup a gcc pragma to exclude gcc 4.5.x and older

vultraz reported errors with tdm-gcc 4.5.2
This commit is contained in:
Chris Beck 2015-04-07 00:55:40 -04:00
parent 34d46b2313
commit 03ab839f30

View file

@ -130,8 +130,10 @@ class CVideo;
// Suppress uninitialized variables warnings, because of boost::optional constructors in this file which apparently confuses gcc
#if defined(__GNUC__) && !defined(__clang__) // we shouldn't need this for clang, but for gcc and tdm-gcc we probably do
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6 ) // "GCC diagnostic ignored" is apparently not available at version 4.5.2
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#endif
static lg::log_domain log_scripting_lua("scripting/lua");
#define LOG_LUA LOG_STREAM(info, log_scripting_lua)