It seems that GCC 4.3.5 (on the CDash machine) doesn't recognise ignoring the 'enum-compare' warning. This commit should switch of all warnings instead (just for this file).

This commit is contained in:
David Williams 2013-02-28 13:42:02 +01:00
parent 4534f721b5
commit c28fa9a0ca

View File

@ -12,11 +12,12 @@
#define MINIZ_NO_MALLOC #define MINIZ_NO_MALLOC
#include "PolyVoxCore/Impl/ErrorHandling.h" #include "PolyVoxCore/Impl/ErrorHandling.h"
// For some unknown reason the miniz library is supplied only as a // For some unknown reason the miniz library is supplied only as a
// 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 ignored "-Wenum-compare" #pragma GCC diagnostic ignored "-Wall"
#include "PolyVoxCore/Impl/miniz.c" #include "PolyVoxCore/Impl/miniz.c"