Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop trailing commas in enums #9

Merged
merged 1 commit into from
Jun 25, 2014
Merged

drop trailing commas in enums #9

merged 1 commit into from
Jun 25, 2014

Conversation

pah
Copy link
Contributor

@pah pah commented Jun 25, 2014

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).

Fixes http://code.google.com/p/rapidjson/issues/detail?id=49.

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).

Fixes http://code.google.com/p/rapidjson/issues/detail?id=49.
miloyip added a commit that referenced this pull request Jun 25, 2014
drop trailing commas in enums
@miloyip miloyip merged commit 1ffd7b4 into Tencent:master Jun 25, 2014
@pah pah deleted the fixes/47 branch June 25, 2014 15:20
pah added a commit to pah/rapidjson-upstream that referenced this pull request Nov 24, 2014
With `-Werror=pedantic`
[...]/include/rapidjson/error/error.h:88:37: error: comma at end of enumerator list [-Werror=pedantic]
     kParseErrorUnspecificSyntaxError,           //!< Unspecific syntax error.

Drop trailing comma to fix this. See Tencent#9.
pah added a commit to pah/rapidjson-upstream that referenced this pull request Feb 20, 2015
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 Tencent#9 and http://code.google.com/p/rapidjson/issues/detail?id=49 for
previous instances of this issue.
@xinthose xinthose mentioned this pull request Aug 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants