Commit 92389c1c authored by Ronan Abhamon's avatar Ronan Abhamon

feat(app): add -Wold-style-cast flag

parent 7bcc90c3
...@@ -12,21 +12,22 @@ set(CMAKE_CXX_STANDARD 11) ...@@ -12,21 +12,22 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_INCLUDE_CURRENT_DIR ON)
# -Wold-style-cast \ #
set(CUSTOM_FLAGS "\ set(CUSTOM_FLAGS "\
-Wcast-align \ -Wcast-align \
-Wconversion \ -Wconversion \
-Werror=suggest-override \
-Wextra \ -Wextra \
-Wfloat-equal \ -Wfloat-equal \
-Winit-self \ -Winit-self \
-Winline \ -Winline \
-Wlogical-op \ -Wlogical-op \
-Wold-style-cast \
-Woverloaded-virtual \ -Woverloaded-virtual \
-Wpointer-arith \ -Wpointer-arith \
-Wsuggest-override \
-Wuninitialized \ -Wuninitialized \
-Wunused \ -Wunused \
-Wsuggest-override \
-Werror=suggest-override \
") ")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CUSTOM_FLAGS}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CUSTOM_FLAGS}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment