Merge branch 'nonnull-in-meson' into 'main'

build: Move -Wnonnull flag to meson.build

See merge request GNOME/glib!3078
This commit is contained in:
Marco Trevisan 2022-11-18 18:17:08 +00:00
commit 7ab85b329a
2 changed files with 2 additions and 3 deletions

View File

@ -91,7 +91,7 @@ fedora-x86_64:
stage: build
needs: []
variables:
CFLAGS: "-coverage -ftest-coverage -fprofile-arcs -Wnonnull"
CFLAGS: "-coverage -ftest-coverage -fprofile-arcs"
script:
- meson ${MESON_COMMON_OPTIONS}
--werror
@ -139,8 +139,6 @@ debian-stable-x86_64:
image: $DEBIAN_IMAGE
stage: build
needs: []
variables:
CFLAGS: "-Wnonnull"
script:
- meson ${MESON_COMMON_OPTIONS}
--werror

View File

@ -477,6 +477,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
'-Wduplicated-branches',
'-Wimplicit-fallthrough',
'-Wmisleading-indentation',
'-Wnonnull',
'-Wunused',
# Due to maintained deprecated code, we do not want to see unused parameters
'-Wno-unused-parameter',