Skip to content

The compile_commands.json file has -std=gnu11 added to the command, but still pops up a warning about the GNU extension syntax. #2035

Closed Answered by HighCommander4
wc7086 asked this question in Q&A
Discussion options

You must be logged in to vote

I only get this diagnostic if my compile command explicitly contains the option -Wgnu-zero-variadic-macro-arguments . In that case, it's expected, regardless of -std=gnu11.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wc7086
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants