summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/nolibc
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2023-08-03 09:28:58 +0200
committerWilly Tarreau <w@1wt.eu>2023-08-23 05:17:07 +0200
commit45f65f8d04db6fa328ab8e0191a8b9462d4bad95 (patch)
tree065f8934ac2e5f97b7a9297854543f663966f193 /tools/testing/selftests/nolibc
parent711edef8f7cfa57f07cd336d77970a2b182bf9fc (diff)
downloadlinux-stable-45f65f8d04db6fa328ab8e0191a8b9462d4bad95.tar.gz
linux-stable-45f65f8d04db6fa328ab8e0191a8b9462d4bad95.tar.bz2
linux-stable-45f65f8d04db6fa328ab8e0191a8b9462d4bad95.zip
selftests/nolibc: enable compiler warnings
It will help the developers to avoid cruft and detect some bugs. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'tools/testing/selftests/nolibc')
-rw-r--r--tools/testing/selftests/nolibc/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile
index b82d29b6c37f..e8d09cbee2ab 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 :=