1
0
forked from 0ad/0ad

Fix warning in old GCCs

This was SVN commit r10514.
This commit is contained in:
Ykkrosh 2011-11-11 11:55:27 +00:00
parent d267657ffe
commit 0192c24ebc

View File

@ -21,9 +21,15 @@
# pragma comment(lib, "ws2_32.lib")
#endif
#if defined(__GNUC__) && (__GNUC__*100 + __GNUC_MINOR__) >= 402 // (older GCCs don't support this pragma)
# pragma GCC diagnostic ignored "-Wunused-but-set-variable"
# pragma GCC diagnostic ignored "-Wunused-function"
#if defined(__GNUC__)
# define GCC_VERSION (__GNUC__*100 + __GNUC_MINOR__)
# if GCC_VERSION >= 402 // older GCCs don't support the diagnostic pragma at all
# pragma GCC diagnostic ignored "-Wunused-function"
# endif
# if GCC_VERSION >= 406 // new warning in 4.6
# pragma GCC diagnostic ignored "-Wunused-but-set-variable"
# endif
#endif
#define NO_CGI