diff options
author | Ralph Tandetzky <ralph.tandetzky@optimeas.de> | 2016-12-01 15:37:04 +0100 |
---|---|---|
committer | Ralph Tandetzky <ralph.tandetzky@optimeas.de> | 2016-12-01 15:37:04 +0100 |
commit | 35a2ef10a23a9b668428c931f408a4a8154adbc9 (patch) | |
tree | 78cf235ef9ebb1191e42a93ed59090ffbe705b3c /salsa.h | |
parent | 3fc97d2bfff25d571049466a6803e8edcad2ceb4 (diff) | |
download | cryptopp-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 'salsa.h')
-rw-r--r-- | salsa.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -22,7 +22,7 @@ NAMESPACE_BEGIN(CryptoPP) //! \brief Salsa20 stream cipher information
struct Salsa20_Info : public VariableKeyLength<32, 16, 32, 16, SimpleKeyingInterface::UNIQUE_IV, 8>
{
- CRYPTOPP_STATIC_CONSTEXPR char* const StaticAlgorithmName() {return "Salsa20";}
+ CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "Salsa20";}
};
//! \class Salsa20_Policy
@@ -58,7 +58,7 @@ struct Salsa20 : public Salsa20_Info, public SymmetricCipherDocumentation //! \brief XSalsa20 stream cipher information
struct XSalsa20_Info : public FixedKeyLength<32, SimpleKeyingInterface::UNIQUE_IV, 24>
{
- CRYPTOPP_STATIC_CONSTEXPR char* const StaticAlgorithmName() {return "XSalsa20";}
+ CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "XSalsa20";}
};
//! \class XSalsa20_Policy
|