mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 13:06:14 +01:00
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:
parent
c1a4aca743
commit
4ff6ecbeff
@ -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
|
||||||
|
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user