mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
glib/gnulib/meson: Disable some warnings on clang windows builds
We have gnulib warnings in windows under clang: ../glib/gnulib/vasnprintf.c:2429:21: warning: variable 'flags' set but not used [-Wunused-but-set-variable] int flags = dp->flags; ^ ../glib/gnulib/vasnprintf.c:4853:19: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case TYPE_LONGINT: ^ See: https://gitlab.gnome.org/3v1n0/glib/-/jobs/2361750
This commit is contained in:
parent
e320149c39
commit
d7a6305ba4
@ -3,6 +3,13 @@
|
||||
extra_gnulib_args = cc.get_supported_arguments([
|
||||
'-Wno-format-nonliteral', '-Wno-duplicated-branches'])
|
||||
|
||||
if host_system == 'windows' and cc.get_id() == 'clang'
|
||||
extra_gnulib_args += cc.get_supported_arguments([
|
||||
'-Wno-unused-but-set-variable',
|
||||
'-Wno-implicit-fallthrough',
|
||||
])
|
||||
endif
|
||||
|
||||
math_h_config = configuration_data ()
|
||||
|
||||
unneeded_funcs = [
|
||||
|
Loading…
Reference in New Issue
Block a user