diff --git a/demos/gtk-demo/meson.build b/demos/gtk-demo/meson.build index 94f2f45415..3576399f04 100644 --- a/demos/gtk-demo/meson.build +++ b/demos/gtk-demo/meson.build @@ -228,7 +228,9 @@ endif # Use a subset of compiler flags demo_cflags = [] foreach flag: common_cflags - if flag not in ['-Werror=missing-prototypes', '-Werror=missing-declarations', '-fvisibility=hidden'] + if flag not in ['-Werror=missing-prototypes', '-Wmissing-prototypes', + '-Werror=missing-declarations', '-Wmissing-declarations', + '-fvisibility=hidden'] demo_cflags += flag endif endforeach diff --git a/testsuite/a11y/meson.build b/testsuite/a11y/meson.build index 54c27fe2e5..4f50d3a606 100644 --- a/testsuite/a11y/meson.build +++ b/testsuite/a11y/meson.build @@ -44,7 +44,9 @@ is_debug = get_option('buildtype').startswith('debug') test_cargs = [] foreach flag: common_cflags - if flag not in ['-Werror=missing-prototypes', '-Werror=missing-declarations', '-fvisibility=hidden'] + if flag not in ['-Werror=missing-prototypes', '-Wmissing-prototypes', + '-Werror=missing-declarations', '-Wmissing-declarations', + '-fvisibility=hidden'] test_cargs += flag endif endforeach diff --git a/testsuite/gtk/meson.build b/testsuite/gtk/meson.build index b628b07dc2..3324664cac 100644 --- a/testsuite/gtk/meson.build +++ b/testsuite/gtk/meson.build @@ -152,7 +152,9 @@ if os_unix endif foreach flag: common_cflags - if flag not in ['-Werror=missing-prototypes', '-Werror=missing-declarations', '-fvisibility=hidden'] + if flag not in ['-Werror=missing-prototypes', '-Wmissing-prototypes', + '-Werror=missing-declarations', '-Wmissing-declarations', + '-fvisibility=hidden'] test_cargs += flag endif endforeach diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build index f66ace543c..eb277d8bf7 100644 --- a/testsuite/reftests/meson.build +++ b/testsuite/reftests/meson.build @@ -2,7 +2,9 @@ reftest_cflags = [] foreach flag: common_cflags - if flag not in ['-Werror=missing-prototypes', '-Werror=missing-declarations', '-fvisibility=hidden'] + if flag not in ['-Werror=missing-prototypes', '-Wmissing-prototypes', + '-Werror=missing-declarations', '-Wmissing-declarations', + '-fvisibility=hidden'] reftest_cflags += flag endif endforeach