]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
make : build with -Wmissing-prototypes (#2394)
authorCebtenzzre <redacted>
Wed, 26 Jul 2023 18:00:04 +0000 (14:00 -0400)
committerGitHub <redacted>
Wed, 26 Jul 2023 18:00:04 +0000 (21:00 +0300)
CMakeLists.txt
Makefile

index abc96814d632df0bdf66ffdce4cb6164b99c9c0f..c43e65e7463209af4d1589da094d41b15c45ed24 100644 (file)
@@ -357,6 +357,7 @@ if (LLAMA_ALL_WARNINGS)
             -Wshadow
             -Wstrict-prototypes
             -Wpointer-arith
+            -Wmissing-prototypes
         )
         set(cxx_flags
             -Wall
index fb7c27cd972bbb13980573f76a4ebe737fd07509..2035c525338a743262ad40a4390b8f15dbba38cf 100644 (file)
--- 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