From 80025eaa46d2daeb9725db5c67b05918c92af7d7 Mon Sep 17 00:00:00 2001 From: Daviw Williams Date: Tue, 26 Feb 2013 10:49:01 +0100 Subject: [PATCH] Attempting to disable GCC compiler warnings in miniz.c (as I don't want to modify external code). --- library/PolyVoxCore/source/MinizCompressor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/PolyVoxCore/source/MinizCompressor.cpp b/library/PolyVoxCore/source/MinizCompressor.cpp index 33fd2978..df4c0947 100644 --- a/library/PolyVoxCore/source/MinizCompressor.cpp +++ b/library/PolyVoxCore/source/MinizCompressor.cpp @@ -15,7 +15,11 @@ // For some unknown reason the miniz library is supplied only as a // 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. +// We also disable some warnings as I don't want to fix external code. +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wno-enum-compare" #include "PolyVoxCore/Impl/miniz.c" +#pragma GCC diagnostic pop #include