diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-04-19 06:14:38 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-04-19 06:14:38 +0800 |
commit | b53156b0395f85cc0c3280af4c8732b3d7241e32 (patch) | |
tree | 3966854bc3617ca726407c9407a02fadd2745f05 /cmake | |
parent | 39b7b44a8d63c9e50911ba724221b4a6399e7f5e (diff) | |
download | dexon-solidity-b53156b0395f85cc0c3280af4c8732b3d7241e32.tar.gz dexon-solidity-b53156b0395f85cc0c3280af4c8732b3d7241e32.tar.zst dexon-solidity-b53156b0395f85cc0c3280af4c8732b3d7241e32.zip |
Remove -fpermissive
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/EthCompilerSettings.cmake | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/cmake/EthCompilerSettings.cmake b/cmake/EthCompilerSettings.cmake index a9ed0a74..d5f5789a 100644 --- a/cmake/EthCompilerSettings.cmake +++ b/cmake/EthCompilerSettings.cmake @@ -43,27 +43,6 @@ if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") OR ("${CMAKE_CXX_COMPILER_ID}" MA # TODO - Track down what breaks if we do NOT do this. add_compile_options(-Wno-unknown-pragmas) - # To get the code building on FreeBSD and Arch Linux we seem to need the following - # warning suppression to work around some issues in Boost headers. - # - # See the following reports: - # https://github.com/ethereum/webthree-umbrella/issues/384 - # https://github.com/ethereum/webthree-helpers/pull/170 - # - # The issue manifest as warnings-as-errors like the following: - # - # /usr/local/include/boost/multiprecision/cpp_int.hpp:181:4: error: - # right operand of shift expression '(1u << 63u)' is >= than the precision of the left operand - # - # -fpermissive is a pretty nasty way to address this. It is described as follows: - # - # Downgrade some diagnostics about nonconformant code from errors to warnings. - # Thus, using -fpermissive will allow some nonconforming code to compile. - # - # NB: Have to use this form for the setting, so that it only applies to C++ builds. - # Applying -fpermissive to a C command-line (ie. secp256k1) gives a build error. - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive") - # Configuration-specific compiler settings. set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -DETH_DEBUG") set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG") |