From f11b96f255ee69f7ea5c51a2596f5cf1909a32b9 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Fri, 4 Nov 2022 14:06:48 -0400 Subject: [PATCH] ci: Build with -Wnonnull -Wnonnull is sort of fickle and it's an option a lot of consumers of glib use. This commit makes sure it gets used on linux during CI as well, so we can catch compat problems before they hit our users. --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a8da418ce..6cc7fd65f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -80,7 +80,7 @@ fedora-x86_64: stage: build needs: [] variables: - CFLAGS: "-coverage -ftest-coverage -fprofile-arcs" + CFLAGS: "-coverage -ftest-coverage -fprofile-arcs -Wnonnull" script: - meson ${MESON_COMMON_OPTIONS} --werror @@ -128,6 +128,8 @@ debian-stable-x86_64: image: $DEBIAN_IMAGE stage: build needs: [] + variables: + CFLAGS: "-Wnonnull" script: - meson ${MESON_COMMON_OPTIONS} --werror