summaryrefslogtreecommitdiff
path: root/sha3.h
diff options
context:
space:
mode:
authorRalph Tandetzky <ralph.tandetzky@optimeas.de>2016-12-01 15:37:04 +0100
committerRalph Tandetzky <ralph.tandetzky@optimeas.de>2016-12-01 15:37:04 +0100
commit35a2ef10a23a9b668428c931f408a4a8154adbc9 (patch)
tree78cf235ef9ebb1191e42a93ed59090ffbe705b3c /sha3.h
parent3fc97d2bfff25d571049466a6803e8edcad2ceb4 (diff)
downloadcryptopp-git-35a2ef10a23a9b668428c931f408a4a8154adbc9.tar.gz
Fix: GCC warning "type qualifiers ignored on function return type".
This pedantic message appeared all over the code. Also removed one warning about an unused variable in release build.
Diffstat (limited to 'sha3.h')
-rw-r--r--sha3.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha3.h b/sha3.h
index 7a3a681b..acf74773 100644
--- a/sha3.h
+++ b/sha3.h
@@ -36,7 +36,7 @@ public:
SHA3(unsigned int digestSize) : m_digestSize(digestSize) {Restart();}
unsigned int DigestSize() const {return m_digestSize;}
std::string AlgorithmName() const {return "SHA3-" + IntToString(m_digestSize*8);}
- CRYPTOPP_STATIC_CONSTEXPR char* const StaticAlgorithmName() { return "SHA3"; }
+ CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() { return "SHA3"; }
unsigned int OptimalDataAlignment() const {return GetAlignmentOf<word64>();}
void Update(const byte *input, size_t length);