cmake : enable and fix -Wall -Wextra -Wpedantic C++ warnings

This commit is contained in:
Georgi Gerganov
2022-12-19 20:45:08 +02:00
parent 8e3f129b4d
commit 99da1e5cc8
8 changed files with 24 additions and 29 deletions

View File

@@ -132,6 +132,12 @@ if (WHISPER_ALL_WARNINGS)
-Wstrict-prototypes \
-Wpointer-arith \
")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \
-Wall \
-Wextra \
-Wpedantic \
-Wcast-qual \
")
else()
# todo : msvc
endif()