It seems push/pop of diagnostic pragmas is only supported on GCC >= 4.6. I've just disabled the warning for the whole file instead.
This commit is contained in:
parent
9ec2ebd78c
commit
7e50dcbd93
@ -16,10 +16,9 @@
|
|||||||
// single .c file without a header. Apparently the only way to use
|
// single .c file without a header. Apparently the only way to use
|
||||||
// it is then to #include it directly which is what the examples do.
|
// it is then to #include it directly which is what the examples do.
|
||||||
// We also disable some warnings as I don't want to fix external code.
|
// We also disable some warnings as I don't want to fix external code.
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic ignored "-Wenum-compare"
|
||||||
#pragma GCC diagnostic ignored "-Wno-enum-compare"
|
|
||||||
#include "PolyVoxCore/Impl/miniz.c"
|
#include "PolyVoxCore/Impl/miniz.c"
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user