-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
warning: ignoring #pragma gcc diagnostic #600
Comments
Cannot reproduce on |
@nabijaczleweli Did you compile with |
Yes, I used all of those flags |
|
Same here, error: ignoring #pragma gcc diagnostic [-Werror=unknown-pragmas]. v1.3.4 doesn't have it |
I just ran into this as well. I put on -Wno-unknown-pragmas to shut it up for now. (I tried to track it down to no avail.) |
You need to use Here is my code:
Here is the shell session reproducing the issue:
|
…italized. Fixes issue catchorg#600.
Thanks David, I've merged that PR locally and will get it pushed soon. |
I do have the problem locally (Arch Linux, GCC 5.3.0) and in Travis CI (using GCC 5.2.1). However @DavidEGrayson's patch resolves the issue. So @philsquared, I think it should be merged. |
Thanks @f-koelher. |
Pushed. I forgot to mention this issue number. |
Closing as resolved. |
Hi. I don't have time to look into this right now, but I just updated to Catch 1.3.5 and started getting this warning on every line of my test suite with CHECK or REQUIRE:
My GCC version is 5.3.0:
I am compiling with
-Wall
and-Wextra
. I guess#pragma gcc diagnostic
was removed from later versions of GCC and it would be nice if catch detected that and didn't use it.The text was updated successfully, but these errors were encountered: