Skip to content

Commit dbcd3f6

Browse files
committed
tests: fail on compiler warnings and enable Wextra
Warnings issued by -Wall and -Wextra most of the time point to actual issues in the code. Treat the as error, so the resulting test run failure will be investigated and the issue handled. Signed-off-by: Christian Göttsche <[email protected]>
1 parent 3ff3104 commit dbcd3f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ INCLUDEDIR ?= $(PREFIX)/include
66
SELINUXFS ?= /sys/fs/selinux
77
FILESYSTEMS ?= ext4 xfs jfs vfat
88

9-
export CFLAGS+=-g -O0 -Wall -D_GNU_SOURCE
9+
export CFLAGS+=-g -O0 -Werror -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE
1010

1111
DISTRO=$(shell ./os_detect)
1212
SELINUXFS := $(shell cat /proc/mounts | grep selinuxfs | cut -f 2 -d ' ')

0 commit comments

Comments
 (0)