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 /cast.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 'cast.h')
-rw-r--r-- | cast.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -23,7 +23,7 @@ protected: //! \brief CAST128 block cipher information
struct CAST128_Info : public FixedBlockSize<8>, public VariableKeyLength<16, 5, 16>
{
- CRYPTOPP_STATIC_CONSTEXPR char* const StaticAlgorithmName() {return "CAST-128";}
+ CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "CAST-128";}
};
//! \class CAST128
@@ -68,7 +68,7 @@ public: //! \brief CAST256 block cipher information
struct CAST256_Info : public FixedBlockSize<16>, public VariableKeyLength<16, 16, 32, 4>
{
- CRYPTOPP_STATIC_CONSTEXPR char* const StaticAlgorithmName() {return "CAST-256";}
+ CRYPTOPP_STATIC_CONSTEXPR const char* StaticAlgorithmName() {return "CAST-256";}
};
//! \class CAST256
|