make : build with -Wmissing-prototypes

This commit is contained in:
Cebtenzzre 2023-07-25 18:42:18 -04:00
parent eb542d3932
commit 78ef528958
2 changed files with 3 additions and 1 deletions

View file

@ -357,6 +357,7 @@ if (LLAMA_ALL_WARNINGS)
-Wshadow -Wshadow
-Wstrict-prototypes -Wstrict-prototypes
-Wpointer-arith -Wpointer-arith
-Wmissing-prototypes
) )
set(cxx_flags set(cxx_flags
-Wall -Wall

View file

@ -63,7 +63,8 @@ ifdef LLAMA_SERVER_VERBOSE
endif endif
# warnings # warnings
CFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith CFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith \
-Wmissing-prototypes
CXXFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar CXXFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar
# OS specific # OS specific