Skip to content

Commit 05adde4

Browse files
committed
build : use -Werror=implicit-function-declaration
1 parent 0465daa commit 05adde4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ if (LLAMA_ALL_WARNINGS)
430430
-Wpointer-arith
431431
-Wmissing-prototypes
432432
-Werror=implicit-int
433+
-Werror=implicit-function-declaration
433434
)
434435
set(cxx_flags
435436
${warning_flags}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ endif # LLAMA_DISABLE_LOGS
175175
# warnings
176176
WARN_FLAGS = -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function
177177
MK_CFLAGS += $(WARN_FLAGS) -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes \
178-
-Werror=implicit-int
178+
-Werror=implicit-int -Werror=implicit-function-declaration
179179
MK_CXXFLAGS += $(WARN_FLAGS) -Wmissing-declarations -Wmissing-noreturn -Wextra-semi
180180

181181
# TODO(cebtenzzre): remove this once PR #2632 gets merged

0 commit comments

Comments
 (0)