summaryrefslogtreecommitdiff
path: root/eccrypto.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 /eccrypto.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 'eccrypto.h')
-rw-r--r--eccrypto.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/eccrypto.h b/eccrypto.h
index b3157d1e..9be28dde 100644
--- a/eccrypto.h
+++ b/eccrypto.h
@@ -309,7 +309,7 @@ template <class EC>
class DL_Algorithm_ECDSA : public DL_Algorithm_GDSA<typename EC::Point>
{
public:
- CRYPTOPP_STATIC_CONSTEXPR char* const CRYPTOPP_API StaticAlgorithmName() {return "ECDSA";}
+ CRYPTOPP_STATIC_CONSTEXPR const char* CRYPTOPP_API StaticAlgorithmName() {return "ECDSA";}
#ifndef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562
virtual ~DL_Algorithm_ECDSA() {}
@@ -323,7 +323,7 @@ template <class EC>
class DL_Algorithm_ECNR : public DL_Algorithm_NR<typename EC::Point>
{
public:
- CRYPTOPP_STATIC_CONSTEXPR char* const CRYPTOPP_API StaticAlgorithmName() {return "ECNR";}
+ CRYPTOPP_STATIC_CONSTEXPR const char* CRYPTOPP_API StaticAlgorithmName() {return "ECNR";}
#ifndef CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562
virtual ~DL_Algorithm_ECNR() {}