-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
apple builds, supress deprecation warnings #15763
Conversation
On apple builds, the gssapi/ldap/securetransport headers deprecate almost everything which leads to a wall of compiler warnings on use in code. Suppress those warning that may hide other warnings/errors.
Analysis of PR #15763 at 11cc7ccb: Test 498 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Generated by Testclutch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These warnings are annoying indeed. It's possible to silence them by setting a sufficiently low target version via -mmacosx-version-min=
/ -DCMAKE_OSX_DEPLOYMENT_TARGET=
(details in .github/workflows/macos.yml
). But, because Secure Transport requires a high version-min
, it's not possible to avoid them with Secure Transport enabled together with GSS/LDAP.
I'm a little bit torn with this. Shouldn't we wait till May 2025, which will allow to solve this by setting a low target version (still to be done manually)? and/or by disabling the deprecated parts by default (or depending on target version, with some complexity)?
On the other hand existing warnings don't seem overly useful either, because these deprecated bits are still supported in latest macOS. Future deprecations might be useful, but curl doesn't use much Apple-specific APIs besides these.
I'm casually in favor, given the above.
If going with it, we might drop most if not all min-version logic and -Wno-deprecated-declarations
use from GHA/macos.
I think suppressing it in code via pragmas seems to solve the issues in a very simple way. I do not know of the target selection has other side effects. |
Agreed, it's the simplest, and unlikely the warnings will be missed by somebody. Would you want to give a try to delete min-ver logic and edit: Hm, some of those (except 10.8/10.9) may have importance, so perhaps just go with dropping edit 2: relevant GHA code: curl/.github/workflows/macos.yml Lines 38 to 50 in fd067bf
curl/.github/workflows/macos.yml Line 121 in fd067bf
curl/.github/workflows/macos.yml Line 253 in fd067bf
|
I removed the |
On apple builds, the gssapi/ldap/securetransport headers deprecate almost everything which leads to a wall of compiler warnings on use in code.
Suppress those warning that may hide other warnings/errors.