|
@@ -10,10 +10,10 @@ set(SRC
|
|
add_executable(${PROJECT_NAME} ${SRC})
|
|
add_executable(${PROJECT_NAME} ${SRC})
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE ncursesw)
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE ncursesw)
|
|
target_compile_options(${PROJECT_NAME} PRIVATE
|
|
target_compile_options(${PROJECT_NAME} PRIVATE
|
|
- -fdiagnostics-color=always
|
|
|
|
-Wall
|
|
-Wall
|
|
-Walloc-zero
|
|
-Walloc-zero
|
|
-Walloca
|
|
-Walloca
|
|
|
|
+ -Wanalyzer-symbol-too-complex
|
|
-Wanalyzer-too-complex
|
|
-Wanalyzer-too-complex
|
|
-Warith-conversion
|
|
-Warith-conversion
|
|
-Warray-bounds=2
|
|
-Warray-bounds=2
|
|
@@ -33,6 +33,7 @@ target_compile_options(${PROJECT_NAME} PRIVATE
|
|
-Wenum-conversion
|
|
-Wenum-conversion
|
|
-Werror
|
|
-Werror
|
|
-Wextra
|
|
-Wextra
|
|
|
|
+ -Wflex-array-member-not-at-end
|
|
-Wfloat-equal
|
|
-Wfloat-equal
|
|
-Wformat-overflow=2
|
|
-Wformat-overflow=2
|
|
-Wformat-signedness
|
|
-Wformat-signedness
|
|
@@ -43,6 +44,7 @@ target_compile_options(${PROJECT_NAME} PRIVATE
|
|
-Winfinite-recursion
|
|
-Winfinite-recursion
|
|
-Winit-self
|
|
-Winit-self
|
|
-Winvalid-pch
|
|
-Winvalid-pch
|
|
|
|
+ -Winvalid-utf8
|
|
-Wjump-misses-init
|
|
-Wjump-misses-init
|
|
-Wlarger-than=1073741824
|
|
-Wlarger-than=1073741824
|
|
-Wlogical-op
|
|
-Wlogical-op
|
|
@@ -50,6 +52,7 @@ target_compile_options(${PROJECT_NAME} PRIVATE
|
|
-Wmissing-declarations
|
|
-Wmissing-declarations
|
|
-Wmissing-include-dirs
|
|
-Wmissing-include-dirs
|
|
-Wmissing-prototypes
|
|
-Wmissing-prototypes
|
|
|
|
+ -Wmissing-variable-declarations
|
|
-Wmultichar
|
|
-Wmultichar
|
|
-Wnarrowing
|
|
-Wnarrowing
|
|
-Wnested-externs
|
|
-Wnested-externs
|
|
@@ -63,6 +66,7 @@ target_compile_options(${PROJECT_NAME} PRIVATE
|
|
-Wsign-conversion
|
|
-Wsign-conversion
|
|
-Wstack-protector
|
|
-Wstack-protector
|
|
-Wstack-usage=8388608
|
|
-Wstack-usage=8388608
|
|
|
|
+ -Wstrict-flex-arrays
|
|
-Wstrict-overflow=2
|
|
-Wstrict-overflow=2
|
|
-Wstrict-prototypes
|
|
-Wstrict-prototypes
|
|
-Wstringop-overflow=4
|
|
-Wstringop-overflow=4
|
|
@@ -75,6 +79,8 @@ target_compile_options(${PROJECT_NAME} PRIVATE
|
|
-Wuse-after-free=3
|
|
-Wuse-after-free=3
|
|
-Wvla
|
|
-Wvla
|
|
-Wwrite-strings
|
|
-Wwrite-strings
|
|
|
|
+ -fdiagnostics-color=always
|
|
|
|
+ -fstrict-flex-arrays=3
|
|
-pedantic
|
|
-pedantic
|
|
-pedantic-errors
|
|
-pedantic-errors
|
|
)
|
|
)
|