Fix warning in old GCCs
This was SVN commit r10514.
This commit is contained in:
parent
d267657ffe
commit
0192c24ebc
12
source/third_party/mongoose/mongoose.cpp
vendored
12
source/third_party/mongoose/mongoose.cpp
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user