Skip to content

Commit 81cb7e5

Browse files
fivemicrocdunn2001
authored andcommitted
Warn about implicit 64 to 32 bit conversions when using clang
1 parent d259f60 commit 81cb7e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ endif( MSVC )
9797

9898
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
9999
# using regular Clang or AppleClang
100-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
100+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wshorten-64-to-32")
101101
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
102102
# using GCC
103103
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -Wextra -pedantic")

0 commit comments

Comments
 (0)