From a7319330cb3e0eaa6c05d53ec10ed372cdbe05be Mon Sep 17 00:00:00 2001 From: "Philipp A. Hartmann" Date: Fri, 20 Feb 2015 08:15:20 +0100 Subject: [PATCH] error.h: drop trailing comma in enum In C++'98/03, trailing commas in enumerations are not allowed, but have been introduced in C++11. This patch drops the trailing commas in order to avoid compiler warnings (e.g. GCC with -pedantic). See #9 and http://code.google.com/p/rapidjson/issues/detail?id=49 for previous instances of this issue. --- include/rapidjson/error/error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rapidjson/error/error.h b/include/rapidjson/error/error.h index 161ef87..729142a 100644 --- a/include/rapidjson/error/error.h +++ b/include/rapidjson/error/error.h @@ -85,7 +85,7 @@ enum ParseErrorCode { kParseErrorNumberMissExponent, //!< Miss exponent in number. kParseErrorTermination, //!< Parsing was terminated. - kParseErrorUnspecificSyntaxError, //!< Unspecific syntax error. + kParseErrorUnspecificSyntaxError //!< Unspecific syntax error. }; //! Result of parsing (wraps ParseErrorCode)