Skip to content

fix: conditionally define RENAME_* macros#2643

Merged
glbrntt merged 2 commits intoapple:mainfrom
Austinpayne:fix/rename-werror
Feb 9, 2024
Merged

fix: conditionally define RENAME_* macros#2643
glbrntt merged 2 commits intoapple:mainfrom
Austinpayne:fix/rename-werror

Conversation

@Austinpayne
Copy link
Copy Markdown
Contributor

When using -Xcc -Werror flags redefining macros results in a compilation error.

Motivation:

Fixes regression in #2628.

Modifications:

Check if RENAME_* macros are already defined before before defining for the musl case.

Result:

NIO now compiles when using -Werror.

Austinpayne and others added 2 commits February 8, 2024 18:32
When using `-Xcc -Werror` flags redefining macros results in a compilation
error. Instead we check if they are not defined before defining for the
musl case.

Fixes regression in apple#2628.
Copy link
Copy Markdown
Contributor

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Feb 9, 2024
@glbrntt glbrntt enabled auto-merge (squash) February 9, 2024 09:24
@glbrntt glbrntt merged commit 745c792 into apple:main Feb 9, 2024
@Austinpayne Austinpayne deleted the fix/rename-werror branch February 9, 2024 16:43
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.

2 participants