[warnings] remove some redundant declarations

Discovered with -Wredundant-decls
This commit is contained in:
Travis Geiselbrecht
2024-04-18 23:49:25 -07:00
parent f92aae9dcf
commit 6ed6f36fa0
8 changed files with 3 additions and 11 deletions

View File

@@ -83,7 +83,7 @@ endif
# flags that are sometimes nice to enable to catch problems but too strict to have on all the time.
# add to global flags from time to time to find things, otherwise only available with a module
# option (see make/module.mk re: MODULE_OPTIONS).
EXTRA_MODULE_COMPILEFLAGS := -Wmissing-declarations
EXTRA_MODULE_COMPILEFLAGS := -Wmissing-declarations -Wredundant-decls
EXTRA_MODULE_CFLAGS := -Wmissing-prototypes
EXTRA_MODULE_CPPFLAGS :=
EXTRA_MODULE_ASMFLAGS :=
@@ -91,6 +91,7 @@ EXTRA_MODULE_ASMFLAGS :=
#GLOBAL_COMPILEFLAGS += -Wpacked
#GLOBAL_COMPILEFLAGS += -Wpadded
#GLOBAL_COMPILEFLAGS += -Winline
#GLOBAL_COMPILEFLAGS += -Wredundant-decls
# if WERROR is set, add to the compile args
ifeq (true,$(call TOBOOL,$(WERROR)))