GitHub: Use -Wnonnull for GCC build

This commit is contained in:
Nicolas Williams
2022-01-19 17:00:11 -06:00
parent 4a0e01f9ed
commit 03c69ffe1c

View File

@@ -59,9 +59,11 @@ jobs:
- name: linux-clang - name: linux-clang
os: ubuntu-18.04 os: ubuntu-18.04
compiler: clang compiler: clang
cflags: ''
- name: linux-gcc - name: linux-gcc
os: ubuntu-18.04 os: ubuntu-18.04
compiler: gcc compiler: gcc
cflags: '-Wnonnull'
steps: steps:
- name: Clone repository - name: Clone repository
uses: actions/checkout@v1 uses: actions/checkout@v1
@@ -86,7 +88,7 @@ jobs:
/bin/sh ./autogen.sh /bin/sh ./autogen.sh
mkdir build mkdir build
cd 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 make -j4
- name: Test - name: Test
env: env: