-
Notifications
You must be signed in to change notification settings - Fork 260
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
[BUG] Ignored -Wno-error-dangling-reference in common.h should be -Werror-dangling-reference #916
Comments
Thanks! |
By the way, using
and I believe Clang has a similar thing. |
Thanks! Interesting... it looks like for a command line that works for both GCC and Clang I need to add |
The YAML uses a single `CXXFLAGS` for GCC and Clang flags, which is mostly okay because they tend to support the same flags... but sometimes GCC and Clang differ So added `-Wno-unknown-warning -Wno-unknown-warning-option`... the first is GCC's spelling and seems to ignore only `-Wno-xxx` negative flags, the second is Clang's spelling and seems to also ignore `-Wxxx` flags, and using them both seems to work to make GCC and Clang ignore also each other's no-warning options (which is either meta or a sweet irony) HT: @DyXel thanks for #916 (comment)
Pushed: 5a032d7 And it passed 10/10, so looks good. Thanks again. |
Describe the bug
The ignored "-Wno-error-dangling-reference" in common.h should be "-Werror-dangling-reference", otherwise it produces a warning by itself.
Additional context
See 9aefcee.
The text was updated successfully, but these errors were encountered: