summaryrefslogtreecommitdiff
path: root/crc.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 /crc.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 'crc.h')
-rw-r--r--crc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crc.h b/crc.h
index 5becb547..fdabe97e 100644
--- a/crc.h
+++ b/crc.h
@@ -31,7 +31,7 @@ public:
void Update(const byte *input, size_t length);
void TruncatedFinal(byte *hash, size_t size);
unsigned int DigestSize() const {return DIGESTSIZE;}
- CRYPTOPP_STATIC_CONSTEXPR char* const StaticAlgorithmName() {return "CRC32";}
+ CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "CRC32";}
std::string AlgorithmName() const {return StaticAlgorithmName();}
void UpdateByte(byte b) {m_crc = m_tab[CRC32_INDEX(m_crc) ^ b] ^ CRC32_SHIFTED(m_crc);}
@@ -56,7 +56,7 @@ public:
void Update(const byte *input, size_t length);
void TruncatedFinal(byte *hash, size_t size);
unsigned int DigestSize() const {return DIGESTSIZE;}
- CRYPTOPP_STATIC_CONSTEXPR char* const StaticAlgorithmName() {return "CRC32C";}
+ CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "CRC32C";}
std::string AlgorithmName() const {return StaticAlgorithmName();}
void UpdateByte(byte b) {m_crc = m_tab[CRC32_INDEX(m_crc) ^ b] ^ CRC32_SHIFTED(m_crc);}