Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp A. Hartmann <pah@qo.cx>2016-06-27 20:05:29 +0300
committerPhilipp A. Hartmann <pah@qo.cx>2016-06-27 20:05:29 +0300
commitad32940da8debdf2a8b4d2f57bb6dd9f7b2a3e1f (patch)
treeb5ee7075944bb2740160820372baa1d8172963bb
parentf6a07692f907e89f682401f45d008f6a19e6fce4 (diff)
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.
-rw-r--r--test/unittest/readertest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unittest/readertest.cpp b/test/unittest/readertest.cpp
index c7c7710b..64a1f9c3 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__