From ad32940da8debdf2a8b4d2f57bb6dd9f7b2a3e1f Mon Sep 17 00:00:00 2001 From: "Philipp A. Hartmann" Date: Mon, 27 Jun 2016 19:05:29 +0200 Subject: [PATCH] readertest: Suppress "dangling-else" warning on GCC 7 and later GCC 6.x doesn't yet support this warning flag, as reported by @ragnar-ouchterlony. --- test/unittest/readertest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unittest/readertest.cpp b/test/unittest/readertest.cpp index c7c7710b6..64a1f9c3c 100644 --- a/test/unittest/readertest.cpp +++ b/test/unittest/readertest.cpp @@ -28,7 +28,7 @@ RAPIDJSON_DIAG_PUSH RAPIDJSON_DIAG_OFF(effc++) RAPIDJSON_DIAG_OFF(float-equal) RAPIDJSON_DIAG_OFF(missing-noreturn) -#if __GNUC__ >= 6 +#if __GNUC__ >= 7 RAPIDJSON_DIAG_OFF(dangling-else) #endif #endif // __GNUC__