From: Cebtenzzre Date: Wed, 26 Jul 2023 18:00:04 +0000 (-0400) Subject: make : build with -Wmissing-prototypes (#2394) X-Git-Tag: gguf-v0.4.0~391 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=6df1f5940f889adde32fe47dc8881f010dcf9aba;p=pkg%2Fggml%2Fsources%2Fllama.cpp make : build with -Wmissing-prototypes (#2394) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index abc96814..c43e65e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -357,6 +357,7 @@ if (LLAMA_ALL_WARNINGS) -Wshadow -Wstrict-prototypes -Wpointer-arith + -Wmissing-prototypes ) set(cxx_flags -Wall diff --git a/Makefile b/Makefile index fb7c27cd..2035c525 100644 --- a/Makefile +++ b/Makefile @@ -63,7 +63,8 @@ ifdef LLAMA_SERVER_VERBOSE endif # 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 # OS specific