diff --git a/libdevcrypto/CryptoHeaders.h b/libdevcrypto/CryptoHeaders.h deleted file mode 100644 index 79fc517cd..000000000 --- a/libdevcrypto/CryptoHeaders.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - This file is part of cpp-ethereum. - - cpp-ethereum is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - cpp-ethereum is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with cpp-ethereum. If not, see . -*/ -/** @file CryptoHeaders.h - * @author Tim Hughes - * @date 2014 - */ -#pragma once - -// need to leave this one disabled -#pragma GCC diagnostic ignored "-Wunused-function" - -#pragma warning(push) -#pragma warning(disable:4100 4244) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wconversion" -#pragma GCC diagnostic ignored "-Wunused-parameter" -#pragma GCC diagnostic ignored "-Wunused-variable" -#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor" -#pragma GCC diagnostic ignored "-Wextra" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#pragma warning(pop) -#pragma GCC diagnostic pop diff --git a/libdevcrypto/CryptoPP.cpp b/libdevcrypto/CryptoPP.cpp index 925e0a7fb..4371af812 100644 --- a/libdevcrypto/CryptoPP.cpp +++ b/libdevcrypto/CryptoPP.cpp @@ -14,11 +14,9 @@ You should have received a copy of the GNU General Public License along with cpp-ethereum. If not, see . */ -/** @file CryptoPP.h +/** @file CryptoPP.cpp * @author Alex Leverington * @date 2014 - * - * CryptoPP wrappers */ #include "CryptoPP.h" diff --git a/libdevcrypto/CryptoPP.h b/libdevcrypto/CryptoPP.h index 5537b4409..d7e4181ee 100644 --- a/libdevcrypto/CryptoPP.h +++ b/libdevcrypto/CryptoPP.h @@ -18,13 +18,38 @@ * @author Alex Leverington * @date 2014 * - * CryptoPP wrappers + * CryptoPP headers and helper methods */ #pragma once +// need to leave this one disabled +//#pragma GCC diagnostic ignored "-Wunused-function" +#pragma warning(push) +#pragma warning(disable:4100 4244) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-function" +#pragma GCC diagnostic ignored "-Wconversion" +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-variable" +#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor" +#pragma GCC diagnostic ignored "-Wextra" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#pragma warning(pop) +#pragma GCC diagnostic pop #include "Common.h" -#include "CryptoHeaders.h" namespace dev { @@ -32,7 +57,6 @@ namespace crypto { namespace pp -// cryptopp wrappers { /// RNG used by CryptoPP inline CryptoPP::AutoSeededRandomPool& PRNG() { static CryptoPP::AutoSeededRandomPool prng; return prng; } diff --git a/libdevcrypto/SHA3.cpp b/libdevcrypto/SHA3.cpp index d72f5bbd4..b3a6e5955 100644 --- a/libdevcrypto/SHA3.cpp +++ b/libdevcrypto/SHA3.cpp @@ -20,7 +20,7 @@ */ #include "SHA3.h" -#include "CryptoHeaders.h" +#include "CryptoPP.h" using namespace std; using namespace dev; diff --git a/libethcore/ProofOfWork.cpp b/libethcore/ProofOfWork.cpp index 7d3916fd3..bfb8942cc 100644 --- a/libethcore/ProofOfWork.cpp +++ b/libethcore/ProofOfWork.cpp @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include "ProofOfWork.h" using namespace std;