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:
Marco Trevisan (Treviño) 2022-10-29 04:15:28 +02:00
parent e320149c39
commit d7a6305ba4

View File

@ -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 = [