From 2574741a14ddbf7904154d36dbbc5e74821100f1 Mon Sep 17 00:00:00 2001 From: arkpar Date: Wed, 4 Mar 2015 23:29:50 +0100 Subject: [PATCH] enabled -pedantic for gcc build --- cmake/EthCompilerSettings.cmake | 2 +- libethereum/CommonNet.cpp | 2 +- libethereum/Interface.cpp | 2 +- libp2p/UDP.cpp | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmake/EthCompilerSettings.cmake b/cmake/EthCompilerSettings.cmake index 7cb42e0e4..6f2d1ad6c 100755 --- a/cmake/EthCompilerSettings.cmake +++ b/cmake/EthCompilerSettings.cmake @@ -3,7 +3,7 @@ # C++11 check and activation if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") - set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -Wno-unknown-pragmas -Wextra -Werror -DSHAREDLIB -fPIC ${CMAKE_CXX_FLAGS}") + set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -Wno-unknown-pragmas -Wextra -Werror -pedantic -DSHAREDLIB -fPIC ${CMAKE_CXX_FLAGS}") set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -DETH_DEBUG") set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG -DETH_RELEASE") set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG -DETH_RELEASE") diff --git a/libethereum/CommonNet.cpp b/libethereum/CommonNet.cpp index 5a9d3d0c9..57681eac0 100644 --- a/libethereum/CommonNet.cpp +++ b/libethereum/CommonNet.cpp @@ -25,4 +25,4 @@ using namespace dev; using namespace dev::eth; #pragma GCC diagnostic ignored "-Wunused-variable" -namespace { char dummy; }; +namespace { char dummy; } diff --git a/libethereum/Interface.cpp b/libethereum/Interface.cpp index 7d731bb1f..545604d90 100644 --- a/libethereum/Interface.cpp +++ b/libethereum/Interface.cpp @@ -22,4 +22,4 @@ #include "Interface.h" #pragma GCC diagnostic ignored "-Wunused-variable" -namespace { char dummy; }; +namespace { char dummy; } diff --git a/libp2p/UDP.cpp b/libp2p/UDP.cpp index 5d9cdab79..eeb3a0b1a 100644 --- a/libp2p/UDP.cpp +++ b/libp2p/UDP.cpp @@ -49,11 +49,11 @@ h256 RLPXDatagramFace::sign(Secret const& _k) dev::sha3(signedRLPx).ref().copyTo(rlpxHash); return std::move(sighash); -}; +} Public RLPXDatagramFace::authenticate(bytesConstRef _sig, bytesConstRef _rlp) { Signature const& sig = *(Signature const*)_sig.data(); return std::move(dev::recover(sig, sha3(_rlp))); -}; +}