projects
/
platform
/
upstream
/
jsoncpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d259f60
)
Warn about implicit 64 to 32 bit conversions when using clang
author
Stuart Eichert
<stuart@fivemicro.com>
Wed, 1 Jul 2015 21:05:54 +0000
(14:05 -0700)
committer
Christopher Dunn
<cdunn2001@gmail.com>
Sat, 11 Jul 2015 15:59:56 +0000
(10:59 -0500)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
ba32022
..
90eb14e
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-97,7
+97,7
@@
endif( MSVC )
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# using regular Clang or AppleClang
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall
-Wshorten-64-to-32
")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
# using GCC
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -Wextra -pedantic")