mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2023-11-04 02:52:44 +03:00
cmake : enable and fix -Wall -Wextra -Wpedantic C++ warnings
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user