Skip to content
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

cmake: drop HAVE_C_FLAG_Wno_long_double logic for ancient Apple gcc #16513

Closed
wants to merge 3 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Feb 27, 2025

The initial curl CMake commit introduced it in 2009-04-02 via
4c5307b. Suppressing a stray
-Wlong-double warning in mprintf.c. This was before Apple switched
to clang, and likely affected the Apple distributed GCC, version 4.2.1
at the time. It applied the workaround to CMake builds only, though
the issue seems build-tool agnostic. Yet, it was not suppressed or
reported for autotools builds.

For these reasons this logic seems obsolete and this patch drops it with
no replacement. It saves a feature detection for GCC builds for macOS.

In PR sub-commits I added (and reverted) in-source suppression. In case
it becomes necessary, that should fix it for all build tools.

This reverts commit 5feabee307ce22dfa052b5bf7a21d7394a107e55.
It was added as part of the initial CMake commit in curl via
4c5307b (2009-04-02). Suppressing
a stray `-Wlong-double` warning in `mprintf.c`. This was before Apple
switched to clang, and likely affected the Apple distributed GCC,
version 4.2.1 at the time. It applied the workaround to CMake builds
only, though the issue seems build-tool agnostic. Yet, it was not
suppressed or reported for autotools builds.

For these reasons this logic seems obsolete and this patch drops it
with no replacement.

In sub-commits I added (and reverted) in-source suppression. In case
it becomes necessary, that should fix it for all build tools.
@vszakats vszakats added build cmake tidy-up appleOS specific to an Apple operating system performance labels Feb 27, 2025
@vszakats vszakats closed this in 399cb71 Feb 28, 2025
@vszakats vszakats deleted the cm-drop-old-gcc-wopt branch February 28, 2025 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
appleOS specific to an Apple operating system build cmake performance tidy-up
Development

Successfully merging this pull request may close these issues.

1 participant