]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
selftests/nolibc: enable -Wmissing-prototypes
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 23 Jan 2025 20:10:44 +0000 (21:10 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Mon, 3 Feb 2025 19:57:39 +0000 (20:57 +0100)
User code may want to use this compiler flag.
Make sure it is supported by nolibc.

Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/r/20250123-nolibc-prototype-v1-3-e1afc5c1999a@weissschuh.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/testing/selftests/nolibc/Makefile

index 7d14a7c0cb62608f328b251495264517d333db2e..f867ebe3474e0e9bfbe4a586bfe9832f51796673 100644 (file)
@@ -164,7 +164,7 @@ CFLAGS_mips32le = -EL -mabi=32 -fPIC
 CFLAGS_mips32be = -EB -mabi=32
 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 -W -Wall -Wextra \
-               $(call cc-option,-fno-stack-protector) \
+               $(call cc-option,-fno-stack-protector) $(call cc-option,-Wmissing-prototypes) \
                $(CFLAGS_$(XARCH)) $(CFLAGS_STACKPROTECTOR) $(CFLAGS_EXTRA)
 LDFLAGS :=