-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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] Build failure with Clang 5 -Wpedantic -Werror and #warning #1213
Comments
is the issue the warning being escalated to an error, or is it that under clang 5 |
@dominichamon The fact that The fact that |
oh i see, it's the use of would |
I think this is working as intended. |
that's what i thought but the error message says "error: #warning is a language extension [-Werror,-Wpedantic]" which suggests the issue is with the use of #warning, not the warning itself. |
@LebedevRI There is two warning being issued:
It seem I'm curious though, is there a way to opt out of warning as error? Or even better, is there a way to fix this Line to be triggered under Clang 5? |
Describe the bug
This library won't compile with Clang 5, but do with all other version of clang.
Here's the error the compiler gives:
It seems benchmark uses a preprocessor extension to give a warning, but having
-Wpedantic -Werror
makes the warning of using the extension an error.This doesn't happen with all other version of clang.
System
Which OS, compiler, and compiler version are you using:
To reproduce
Steps to reproduce the behavior:
v1.5.5
cmake .. -DBENCHMARK_ENABLE_TESTING=OFF -DCMAKE_CXX_COMPILER=clang++-5
Expected behavior
The library should build correctly
Additional context
It was found on github actions to test one of my libraries using Clang 5. Here's the full log.
It was installed using vcpkg. The original bug report is here: microsoft/vcpkg#19588
The text was updated successfully, but these errors were encountered: