From e6bd8cc8c45b4fbf2d56d71233b722d1694c2140 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Tue, 19 Mar 2019 17:25:07 -0700 Subject: [PATCH] (cmake) add a warning about 32/64 conversion problems. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 31f20a40..a4ef9882 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ set (CMAKE_CXX_EXTENSIONS OFF) # -Wshorten-64-to-32 does not work with clang if (NOT WIN32) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -Wshorten-64-to-32") endif() if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")