Skip to content

Fix for MSVC port: do not warn for use of deprecated declarations.#190

Open
jhjourdan wants to merge 1 commit into
garrigue:lablgtk3from
jhjourdan:msvc-fixes
Open

Fix for MSVC port: do not warn for use of deprecated declarations.#190
jhjourdan wants to merge 1 commit into
garrigue:lablgtk3from
jhjourdan:msvc-fixes

Conversation

@jhjourdan
Copy link
Copy Markdown

No description provided.

@jhjourdan
Copy link
Copy Markdown
Author

Unison currently patches lablgtk at each Windows build, so merging this would really help Unison developers. See #165 .

@MisterDA
Copy link
Copy Markdown

MisterDA commented Nov 19, 2025

FYI there's a cool way to specify warnings for both cc-like and MSVC-like compilers:

(rule
 (with-stdout-to cflags.cc (echo "(-Wno-deprecated-declarations)")))

(rule
 (with-stdout-to cflags.msvc (echo "")))

(library
 (name mylib)
 (foreign_stubs
  (language c)
  (flags :standard (:include cflags.%{ocaml-config:ccomp_type}))
  (names mystubs)))

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