-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Fix compiler pragma warning on GCC <= 4.2 #16152
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
Conversation
Analysis of PR #16152 at 9c90db75: Test http/test_14_auth.py::TestAuth::test_14_03_digest_put_auth[h3] failed, which has NOT been flaky recently, so there could be a real issue in this PR. Generated by Testclutch |
This pragma works without warning in 4.4.0 according to a recent CeGCC port #16062. This is confirmed by godbolt.org with 4.4.7. More details here: https://gcc.gnu.org/legacy-ml/gcc-help/2011-01/msg00113.html Can you share your command-line, platform and other details to replicate this? |
Sorry, I've got my version numbers mixed up. The cross-compiler used is 4.2.0. Here's some test case output:
|
There are more places in the code that may hit such pragma. |
We don't pursue this, and the necessary `#pragma` got in the way of compiling curl with gcc 4.2 and older. Drop the logic completely. Follow-up to 8a266ac curl#15939 Reported-by: prpr19xx on Github Fixes curl#16152
We don't pursue this, and the necessary `#pragma` got in the way of compiling curl with gcc 4.2 and older. Drop the logic completely. Follow-up to 8a266ac curl#15939 Reported-by: prpr19xx on Github Fixes curl#16152
Note for future ref.: This is 4.2.0 pre-release. 4.2.0 stable does support this pragma. |
We don't pursue this, and the necessary `#pragma` got in the way of compiling curl with gcc 4.2 and older. Drop the logic completely. Follow-up to 8a266ac curl#15939 Reported-by: prpr19xx on Github Fixes curl#16152 Closes curl#16157
I get this error on GCC 4.5.2:
curl_setup.h:37: warning: unknown option after '#pragma GCC diagnostic' kind
I don't known which version implemented this, possibly 4.6, but just rule out any 4.x version, which is probably good enough.