Skip to content

Remove unnecessary zlib warning flags - #1243

Merged
Simn merged 1 commit into
HaxeFoundation:masterfrom
tobil4sk:fix/zlib-flags
Jul 20, 2025
Merged

Remove unnecessary zlib warning flags#1243
Simn merged 1 commit into
HaxeFoundation:masterfrom
tobil4sk:fix/zlib-flags

Conversation

@tobil4sk

Copy link
Copy Markdown
Member

See: #1144 (comment)

Once hxcpp starts using zlib 1.3 this change can be removed as mentioned madler/zlib#842 (comment)

These were used to suppress warnings in zlib 1.2, but now that we are on zlib 1.3 they are no longer necessary. In fact, they cause warnings with some compilers so it's better to remove them:

cc1plus: warning: command-line option ‘-Wno-deprecated-non-prototype’ is valid for C/ObjC but not for C++
cc1plus: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
cc1plus: note: unrecognized command-line option ‘-Wno-unknown-warning’ may have been intended to silence earlier diagnostics

These were used to suppress warnings in zlib 1.2, but now that we are on
zlib 1.3 they are no longer necessary. In fact, they cause warnings with
some compilers so it's better to remove them.
@Simn
Simn merged commit 05b5e3a into HaxeFoundation:master Jul 20, 2025
120 checks passed
@tobil4sk
tobil4sk deleted the fix/zlib-flags branch July 20, 2025 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants