Skip to content

Commit

Permalink
readertest: Suppress "dangling-else" warning on GCC 7 and later
Browse files Browse the repository at this point in the history
GCC 6.x doesn't yet support this warning flag, as reported by
@ragnar-ouchterlony.
  • Loading branch information
pah committed Jun 27, 2016
1 parent f6a0769 commit ad32940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unittest/readertest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down

0 comments on commit ad32940

Please sign in to comment.