build : use -Werror=implicit-function-declaration
This commit is contained in:
parent
0465daaa1d
commit
05adde4f1b
2 changed files with 2 additions and 1 deletions
|
@ -430,6 +430,7 @@ if (LLAMA_ALL_WARNINGS)
|
|||
-Wpointer-arith
|
||||
-Wmissing-prototypes
|
||||
-Werror=implicit-int
|
||||
-Werror=implicit-function-declaration
|
||||
)
|
||||
set(cxx_flags
|
||||
${warning_flags}
|
||||
|
|
2
Makefile
2
Makefile
|
@ -175,7 +175,7 @@ endif # LLAMA_DISABLE_LOGS
|
|||
# warnings
|
||||
WARN_FLAGS = -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function
|
||||
MK_CFLAGS += $(WARN_FLAGS) -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes \
|
||||
-Werror=implicit-int
|
||||
-Werror=implicit-int -Werror=implicit-function-declaration
|
||||
MK_CXXFLAGS += $(WARN_FLAGS) -Wmissing-declarations -Wmissing-noreturn -Wextra-semi
|
||||
|
||||
# TODO(cebtenzzre): remove this once PR #2632 gets merged
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue