mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-12 13:27:21 +01:00
cmake : enable -Wshadow for C++ code [no ci]
This commit is contained in:
parent
c05e8c9934
commit
e7564c5023
@ -13,7 +13,7 @@ function(llama_add_compile_flags)
|
||||
list(APPEND C_FLAGS -Wshadow -Wstrict-prototypes -Wpointer-arith -Wmissing-prototypes
|
||||
-Werror=implicit-int -Werror=implicit-function-declaration)
|
||||
|
||||
list(APPEND CXX_FLAGS -Wmissing-declarations -Wmissing-noreturn)
|
||||
list(APPEND CXX_FLAGS -Wshadow -Wmissing-declarations -Wmissing-noreturn)
|
||||
|
||||
list(APPEND WARNING_FLAGS -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user