diff options
author | Jeffrey Walton <noloader@gmail.com> | 2023-01-16 21:53:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 21:53:31 -0500 |
commit | 524e99f2190197151aa3f7406bc6f39b85e5d12c (patch) | |
tree | eb9836fd14215ef739ffdeb1c70c51ca704c42e2 /config_misc.h | |
parent | f0202c369ede549aa2d60e483b93c01c62ad400d (diff) | |
download | cryptopp-git-524e99f2190197151aa3f7406bc6f39b85e5d12c.tar.gz |
Fix unused variable declared as const under VS2022, v17.4 (GH #1185) (PR #1186)
Fix unused variable declared as const under VS2022, v17.4
Diffstat (limited to 'config_misc.h')
-rw-r--r-- | config_misc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config_misc.h b/config_misc.h index 67b2d4ab..cf398b16 100644 --- a/config_misc.h +++ b/config_misc.h @@ -145,11 +145,16 @@ #endif
// http://stackoverflow.com/a/13867690/608639
+// CRYPTOPP_CONST_OR_CONSTEXPR due to https://github.com/weidai11/cryptopp/issues/1185
#if defined(CRYPTOPP_CXX11_CONSTEXPR)
# define CRYPTOPP_STATIC_CONSTEXPR static constexpr
+# define CRYPTOPP_STATIC_CONST_OR_CONSTEXPR static constexpr
+# define CRYPTOPP_CONST_OR_CONSTEXPR constexpr
# define CRYPTOPP_CONSTEXPR constexpr
#else
# define CRYPTOPP_STATIC_CONSTEXPR static
+# define CRYPTOPP_STATIC_CONST_OR_CONSTEXPR static const
+# define CRYPTOPP_CONST_OR_CONSTEXPR const
# define CRYPTOPP_CONSTEXPR
#endif // CRYPTOPP_CXX11_CONSTEXPR
|