Fixed issue #798 and added -Wconversion compiler flag to build

This commit is contained in:
gabime
2018-08-17 00:32:13 +03:00
parent 06181720fb
commit a58d7594cb
8 changed files with 19 additions and 17 deletions

View File

@@ -28,7 +28,9 @@ set(CMAKE_CXX_EXTENSIONS OFF)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
add_compile_options("-Wall")
add_compile_options("-Wextra")
add_compile_options("-Wconversion")
add_compile_options("-pedantic")
endif()
#---------------------------------------------------------------------------------------