summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-05-03 16:55:33 +0200
committerlouiz’ <louiz@louiz.org>2017-05-03 16:55:33 +0200
commit2c4a47e42d6cd5202fe6333d44c47cccc15658cd (patch)
treef386650e1f00a259cddcd9aa628d5cf66ebfa45c
parent0a8a77e64ce4c314d8e6fa9eda8fc47f8cdef080 (diff)
downloadbiboumi-2c4a47e42d6cd5202fe6333d44c47cccc15658cd.tar.gz
biboumi-2c4a47e42d6cd5202fe6333d44c47cccc15658cd.tar.bz2
biboumi-2c4a47e42d6cd5202fe6333d44c47cccc15658cd.tar.xz
biboumi-2c4a47e42d6cd5202fe6333d44c47cccc15658cd.zip
Add -Wconversion compile flag
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 37e8908..f2ab189 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,7 +15,7 @@ find_library(LIBUBSAN NAMES ubsan libubsan.so.0)
#
## Set various debug flags (instrumentation libs, coverage, …)
#
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -pedantic -Wall -Wextra")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -pedantic -Wall -Wextra -Wconversion")
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage --coverage")
endif()