diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2016-03-28 15:14:36 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2016-03-28 21:40:22 +0300 |
commit | f5446dfe4d569cf4d3fae0693385620985ab956c (patch) | |
tree | f56dda2565ecb6d2eef0d7d71db9157b9d0484a8 | |
parent | 85f814e17f7d4e8d665fee4281831c8f4576e40f (diff) | |
download | binaryen-f5446dfe4d569cf4d3fae0693385620985ab956c.tar.gz binaryen-f5446dfe4d569cf4d3fae0693385620985ab956c.tar.bz2 binaryen-f5446dfe4d569cf4d3fae0693385620985ab956c.zip |
Ignore Visual Studio compiler "warning C4146: unary minus operator applied to unsigned type, result still unsigned", this is used commonly in bit manipulation.
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c27c8b1fa..89f7ce54c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,7 @@ IF(MSVC) IF(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "19.0") # VS2013 and older explicitly need /arch:sse2 set, VS2015 no longer has that option, but always enabled. ADD_COMPILE_FLAG("/arch:sse2") ENDIF() + ADD_COMPILE_FLAG("/wd4146") # Ignore warning "warning C4146: unary minus operator applied to unsigned type, result still unsigned", this pattern is used somewhat commonly in the code. ADD_COMPILE_FLAG("/WX-") IF(uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG") ADD_COMPILE_FLAG("/O0") |