]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
cmake : enable some basic warnings globally (#482)
authorCebtenzzre <redacted>
Mon, 28 Aug 2023 11:44:18 +0000 (07:44 -0400)
committerGitHub <redacted>
Mon, 28 Aug 2023 11:44:18 +0000 (14:44 +0300)
commit3545eeb48a1a2cacd6e17e91505f42d8d6cbe55e
tree710f1921d8b3e643f827bbf22b14e723fdc3c6c0
parent7e1dacb7c570b087df0908a054b43353e495bc7a
cmake : enable some basic warnings globally (#482)

* cmake : make -Werror=vla global

* cmake : make -Wuninitialized global (part of -Wall)

* tests : fix some -Wunused warnings

This flag is not enabled by default. There are still some warnings
remaining.

* cmake : make -Wsign-compare global (part of -Wall)

* cmake : make -Wall global (minus -Wunused)

* cmake : make -Wstrict-prototypes global

* cmake : add -Wpedantic -Wformat=2 globally

---------

Co-authored-by: Georgi Gerganov <redacted>
16 files changed:
CMakeLists.txt
examples/dolly-v2/main.cpp
examples/gpt-2/main.cpp
examples/gpt-j/main.cpp
examples/gpt-neox/main.cpp
examples/mnist/main-cpu.cpp
examples/mpt/main.cpp
examples/replit/main.cpp
examples/sam/main.cpp
examples/starcoder/main.cpp
examples/starcoder/starcoder-mmap.cpp
src/CMakeLists.txt
tests/test-grad0.cpp
tests/test-mul-mat0.c
tests/test-mul-mat2.c
tests/test-vec1.c