ci: Enable -Wall, -Wextra and -Werror

Make the Github continuous integration checks more strict.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Bart Van Assche 2022-04-21 15:18:36 -07:00 committed by Jaegeuk Kim
parent c491657c0e
commit 6eebd13e76

View File

@ -66,5 +66,5 @@ jobs:
./autogen.sh ./autogen.sh
./configure --host=${{matrix.host}} \ ./configure --host=${{matrix.host}} \
CC=${{ matrix.host && format('{0}-{1}', matrix.host, matrix.cc) || matrix.cc }} \ CC=${{ matrix.host && format('{0}-{1}', matrix.host, matrix.cc) || matrix.cc }} \
CFLAGS="${{matrix.cflags}}" CFLAGS="-Wall -Wextra -Werror -Wno-sign-compare -Wno-unused-function -Wno-unused-parameter ${{matrix.cflags}}"
make -j$(nproc) make -j$(nproc)