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

Fix warnings caused by not defining the feature macros. #2606

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

al45tair
Copy link
Contributor

@al45tair al45tair commented Dec 5, 2023

We should define _GNU_SOURCE for all of the C modules, really. Relying on features.h doesn't work for modular headers.

Motivation:

Unfortunately, the defaults in <features.h> don't really work for modular headers, so we need to define _GNU_SOURCE in a couple more places (mostly to avoid a compiler warning).

Modifications:

Add _GNU_SOURCE in a couple of places.

Result:

There shouldn't be a huge impact; we won't generate compiler warnings about <features.h> in a couple of places where we were doing before (assuming modular headers).

We should define `_GNU_SOURCE` for all of the C modules, really.
Relying on `features.h` doesn't work for modular headers.
@al45tair
Copy link
Contributor Author

al45tair commented Dec 5, 2023

@swift-server-bot test this please

@FranzBusch FranzBusch merged commit 8904867 into apple:main Dec 5, 2023
8 checks passed
@glbrntt glbrntt added the semver/patch No public API change. label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants