Skip to content

Fix zero variadic macro arguments#1540

Closed
terrelln wants to merge 3 commits intofacebook:devfrom
terrelln:pedantic
Closed

Fix zero variadic macro arguments#1540
terrelln wants to merge 3 commits intofacebook:devfrom
terrelln:pedantic

Conversation

@terrelln
Copy link
Contributor

@terrelln terrelln commented Feb 27, 2019

Fix the RETURN_ERROR macro and friends to have a RETURN_ERROR_MSG macro to avoid empty __VA_ARGS__.

We can't enable the flag to detect this, since it is gcc only. We can't enable -pedantic right now because it is too noisy. It would take quite some work to enable, and we'd have to disable certain parts, so the parts we'd have to disable would have to be consistent across compilers.

Fixes #1538.

@terrelln terrelln changed the title Compile with -pedantic Compile with -Wgnu-zero-variadic-macro-arguments Feb 27, 2019
@terrelln terrelln changed the title Compile with -Wgnu-zero-variadic-macro-arguments Fix zero variadic macro arguments Feb 27, 2019
@terrelln
Copy link
Contributor Author

I'm going to go ahead and close this PR. We can revive it if we want to enable -pedantic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants