Skip to content

Conversation

@Alizter
Copy link
Collaborator

@Alizter Alizter commented Nov 19, 2025

This PR disables the specific warnings we get when compiling lmdb and it's OCaml stubs on Windows (msvc and mingw only). We don't intend to fix them so they are just noise for our CI.

@Alizter Alizter force-pushed the push-lnyzuvoxptpt branch 2 times, most recently from 79fb17f to d90f49a Compare November 19, 2025 19:01
@Alizter Alizter changed the title boot: disable lmdb warnings on windows disable lmdb warnings on windows Nov 19, 2025
@Alizter Alizter force-pushed the push-lnyzuvoxptpt branch 4 times, most recently from 25e647f to 694042e Compare November 19, 2025 22:02
@Alizter Alizter changed the title disable lmdb warnings on windows disable warnings on windows and macos Nov 19, 2025
(foreign_stubs
(language c)
(names blake3_stubs)
(flags :standard -O3)))
Copy link
Member

Choose a reason for hiding this comment

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

Is this relevant to this PR? If not, I suggest move it to a separate PR

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it is relevant. First we don't even set -O3 in the bootstrap so the development build is simply different. Secondly MSVC doesn't understand -O3 and emits a warning when it encounters it. -O2 as found in :standard however is fine.

Comment on lines +23 to +24
(flags
(-w -3-6-27-32-33-35-50)))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These don't actually do anything but I won't touch them here.

@Alizter Alizter marked this pull request as ready for review November 25, 2025 15:51
@Alizter Alizter requested a review from rgrinberg November 25, 2025 15:51
This disables the warnings during the compilation of ocaml-notify on
Windows mingw and macos.

Signed-off-by: Ali Caglayan <[email protected]>
We don't use -O3 in the bootstrap so there is little point passing it
here. O3 also doesn't make sense for MSVC which would warn about this.

Signed-off-by: Ali Caglayan <[email protected]>
@Alizter Alizter enabled auto-merge December 2, 2025 09:00
@Alizter Alizter merged commit ce98b81 into ocaml:main Dec 2, 2025
28 checks passed
@Alizter Alizter deleted the push-lnyzuvoxptpt branch December 2, 2025 09:14
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