mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
feat(app): add -Wold-style-cast flag
This commit is contained in:
parent
7bcc90c38f
commit
92389c1cfb
1 changed files with 4 additions and 3 deletions
|
|
@ -12,21 +12,22 @@ set(CMAKE_CXX_STANDARD 11)
|
|||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
# -Wold-style-cast \
|
||||
#
|
||||
set(CUSTOM_FLAGS "\
|
||||
-Wcast-align \
|
||||
-Wconversion \
|
||||
-Werror=suggest-override \
|
||||
-Wextra \
|
||||
-Wfloat-equal \
|
||||
-Winit-self \
|
||||
-Winline \
|
||||
-Wlogical-op \
|
||||
-Wold-style-cast \
|
||||
-Woverloaded-virtual \
|
||||
-Wpointer-arith \
|
||||
-Wsuggest-override \
|
||||
-Wuninitialized \
|
||||
-Wunused \
|
||||
-Wsuggest-override \
|
||||
-Werror=suggest-override \
|
||||
")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CUSTOM_FLAGS}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue