Skip to content

Commit 6df1f59

Browse files
authored
make : build with -Wmissing-prototypes (#2394)
1 parent 5488fb7 commit 6df1f59

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ if (LLAMA_ALL_WARNINGS)
357357
-Wshadow
358358
-Wstrict-prototypes
359359
-Wpointer-arith
360+
-Wmissing-prototypes
360361
)
361362
set(cxx_flags
362363
-Wall

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ ifdef LLAMA_SERVER_VERBOSE
6363
endif
6464

6565
# warnings
66-
CFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith
66+
CFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith \
67+
-Wmissing-prototypes
6768
CXXFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar
6869

6970
# OS specific

0 commit comments

Comments
 (0)