From 7e2b9cc38369ca552e41f8fd9c987dcfe4b33af4 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Wed, 3 May 2023 14:03:43 +0800 Subject: [PATCH] btrfs-progs: build: enable -Wmissing-prototypes With all the known warnings fixed, we can enable -Wmissing-prototypes and prevent such warnings from happening. Signed-off-by: Qu Wenruo Signed-off-by: David Sterba --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 129151be..b477beb7 100644 --- a/Makefile +++ b/Makefile @@ -84,7 +84,8 @@ DISABLE_WARNING_FLAGS := $(call cc-disable-warning, format-truncation) \ $(call cc-disable-warning, address-of-packed-member) # Warnings that we want by default -ENABLE_WARNING_FLAGS := $(call cc-option, -Wimplicit-fallthrough) +ENABLE_WARNING_FLAGS := $(call cc-option, -Wimplicit-fallthrough) \ + $(call cc-option, -Wmissing-prototypes) # Common build flags CFLAGS = $(SUBST_CFLAGS) \