From 03c69ffe1c46cf172ce1e534a0f7a1027516bca8 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Wed, 19 Jan 2022 17:00:11 -0600 Subject: [PATCH] GitHub: Use -Wnonnull for GCC build --- .github/workflows/linux.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 89cdf2bed..48e4c80dc 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -59,9 +59,11 @@ jobs: - name: linux-clang os: ubuntu-18.04 compiler: clang + cflags: '' - name: linux-gcc os: ubuntu-18.04 compiler: gcc + cflags: '-Wnonnull' steps: - name: Clone repository uses: actions/checkout@v1 @@ -86,7 +88,7 @@ jobs: /bin/sh ./autogen.sh mkdir build cd build - ../configure --srcdir=`dirname "$PWD"` --enable-maintainer-mode --enable-developer --with-ldap $CONFIGURE_OPTS --prefix=$HOME/inst CFLAGS="-Wno-error=shadow -Wno-error=bad-function-cast -Wno-error=unused-function -Wno-error=unused-result -Wno-error=deprecated-declarations" + ../configure --srcdir=`dirname "$PWD"` --enable-maintainer-mode --enable-developer --with-ldap $CONFIGURE_OPTS --prefix=$HOME/inst CFLAGS="${{ matrix.cflags }} -Wno-error=shadow -Wno-error=bad-function-cast -Wno-error=unused-function -Wno-error=unused-result -Wno-error=deprecated-declarations" make -j4 - name: Test env: