Skip to content

feat(foreign): make unguarded availability warnings fatal - #16456

Draft
Alizter wants to merge 1 commit into
ocaml:mainfrom
Alizter:push-wqomoywkqupl
Draft

Alizter wants to merge 1 commit into
ocaml:mainfrom
Alizter:push-wqomoywkqupl

Conversation

@Alizter

@Alizter Alizter commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

Detect warning support in the existing compiler probe and add -Werror=unguarded-availability-new to standard C/C++ flags in all profiles. Preserve user overrides and avoid duplicating inherited flags, without introducing a new language-version guard.


  • Tests added
  • Change log entry added for any user-facing changes.
  • Documentation added for any user-facing changes.

Detect warning support in the existing compiler probe and add
-Werror=unguarded-availability-new to standard C/C++ flags in all profiles.
Preserve user overrides and avoid duplicating inherited flags, without
introducing a new language-version guard.

Fixes ocaml#16413.

Signed-off-by: Ali Caglayan <alizter@gmail.com>
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.

Dune should pass the -Werror=unguarded-availability-new warning

1 participant