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

Fix zero variadic macro arguments #1540

Closed
wants to merge 3 commits into from
Closed

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