build: Move -Wnonnull flag to meson.build

It should be enabled in all builds, not just CI builds. Otherwise
developers might miss it locally.

This updates commit f11b96f255.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-11-18 13:33:20 +00:00
parent c1a4aca743
commit 4ff6ecbeff
2 changed files with 2 additions and 3 deletions

View File

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

View File

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