From: Thomas Weißschuh Date: Thu, 3 Aug 2023 07:28:58 +0000 (+0200) Subject: selftests/nolibc: enable compiler warnings X-Git-Tag: v6.6-rc1~175^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=45f65f8d04db6fa328ab8e0191a8b9462d4bad95;p=thirdparty%2Fkernel%2Flinux.git selftests/nolibc: enable compiler warnings It will help the developers to avoid cruft and detect some bugs. Signed-off-by: Thomas Weißschuh Signed-off-by: Willy Tarreau --- diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index b82d29b6c37fa..e8d09cbee2ab6 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -79,7 +79,7 @@ endif CFLAGS_s390 = -m64 CFLAGS_mips = -EL CFLAGS_STACKPROTECTOR ?= $(call cc-option,-mstack-protector-guard=global $(call cc-option,-fstack-protector-all)) -CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 \ +CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 -W -Wall -Wextra \ $(call cc-option,-fno-stack-protector) \ $(CFLAGS_$(ARCH)) $(CFLAGS_STACKPROTECTOR) LDFLAGS :=