fix some warnings

This commit is contained in:
BlackMATov
2021-08-06 01:59:59 +07:00
parent 30ed716c4c
commit 22ebb81be6
6 changed files with 39 additions and 32 deletions

View File

@@ -25,7 +25,10 @@ target_compile_options(${PROJECT_NAME}
$<$<CXX_COMPILER_ID:MSVC>:
/WX /W4>
PRIVATE
$<$<OR:$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:
-Werror -Wall -Wextra -Wpedantic>)
$<$<CXX_COMPILER_ID:GNU>:
-Werror -Wall -Wextra -Wpedantic>
PRIVATE
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:
-Werror -Weverything -Wconversion>)
add_test(${PROJECT_NAME} ${PROJECT_NAME})