GitHub: Use -Wnonnull for GCC build
This commit is contained in:
4
.github/workflows/linux.yml
vendored
4
.github/workflows/linux.yml
vendored
@@ -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:
|
||||||
|
Reference in New Issue
Block a user