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

Replacing c2x by c1x in some files #35

Open
uNouss opened this issue May 31, 2024 · 0 comments
Open

Replacing c2x by c1x in some files #35

uNouss opened this issue May 31, 2024 · 0 comments

Comments

@uNouss
Copy link
Collaborator

uNouss commented May 31, 2024

In these files

  • GCC_WARNINGS="-Wall -Wextra -Wswitch-default -Wdeclaration-after-statement -Wundef -Wshadow -Wbad-function-cast -Wcast-qual -Wredundant-decls -Wno-char-subscripts -Wcast-align -fno-common -Wstrict-prototypes -Wformat -Wuninitialized -fstrict-aliasing -Wold-style-definition -std=c2x"
  • GCC_WARNINGS=-Wall -Wextra -Wswitch-default -Wdeclaration-after-statement -Wundef -Wshadow -Wbad-function-cast -Wcast-qual -Wredundant-decls -Wno-char-subscripts -Wcast-align -fno-common -Wstrict-prototypes -Wformat -Wuninitialized -fstrict-aliasing -Wold-style-definition -std=c2x

we have -std=c2x, and this option is not compatible with most versions of gcc tested, unlike -std=c1x.

Instead of just replacing it, it might be a better option to declare the GCC_WARNINGS variable once.

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

No branches or pull requests

1 participant