Skip to content

Commit

Permalink
Fix compilation with older GCC versions
Browse files Browse the repository at this point in the history
Older GCC versions fail compiling RapidJSON due to a warning

include/rapidjson/reader.h:578: error: suggest a space before ';' or explicit braces around empty body in 'while' statement
: warnings being treated as errors
  • Loading branch information
AdamMajer committed Sep 30, 2016
1 parent ffc7942 commit cb017cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rapidjson/reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ class GenericReader {
}
}
else if (RAPIDJSON_LIKELY(Consume(is, '/')))
while (is.Peek() != '\0' && is.Take() != '\n');
while (is.Peek() != '\0' && is.Take() != '\n') {}
else
RAPIDJSON_PARSE_ERROR(kParseErrorUnspecificSyntaxError, is.Tell());

Expand Down

0 comments on commit cb017cb

Please sign in to comment.