diff options
-rw-r--r-- | .gitlab-ci.yml | 2 | ||||
-rw-r--r-- | meson/suppressions/meson.build | 12 | ||||
-rw-r--r-- | test/headers/meson.build | 6 |
3 files changed, 19 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b607d20..f4f6be7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -112,7 +112,7 @@ freebsd: mac: tags: [macos] script: - - meson setup build -Dbuildtype=debug -Dwarning_level=3 -Dwerror=true + - meson setup build -Dbuildtype=debug -Dwarning_level=everything -Dwerror=true - ninja -C build test - meson configure -Dbuildtype=release build - ninja -C build test diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build index f77f789..0cacb4d 100644 --- a/meson/suppressions/meson.build +++ b/meson/suppressions/meson.build @@ -31,6 +31,12 @@ if is_variable('cc') '-Wno-switch-enum', ] + if not meson.is_cross_build() + c_suppressions += [ + '-Wno-poison-system-directories', + ] + endif + if host_machine.system() == 'windows' c_suppressions += [ '-Wno-format-nonliteral', @@ -113,6 +119,12 @@ if is_variable('cpp') '-Wno-reserved-id-macro', ] + if not meson.is_cross_build() + cpp_suppressions += [ + '-Wno-poison-system-directories', + ] + endif + if host_machine.system() == 'windows' cpp_suppressions += [ '-Wno-format-nonliteral', diff --git a/test/headers/meson.build b/test/headers/meson.build index 1d2162f..6e9ac7a 100644 --- a/test/headers/meson.build +++ b/test/headers/meson.build @@ -12,6 +12,12 @@ if get_option('warning_level') == 'everything' '-Wno-padded', ] + if not meson.is_cross_build() + header_c_suppressions += [ + '-Wno-poison-system-directories', + ] + endif + if host_machine.system() == 'windows' header_c_suppressions += [ '-Wno-format-nonliteral', |