mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-06-18 02:14:12 +02:00
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:
commit
7ab85b329a
@ -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…
x
Reference in New Issue
Block a user