summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-08-26 17:52:36 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-08-26 17:52:36 (GMT)
commitb27cbec801e17a13d7fef49116a8fc279930d2b1 (patch)
tree59ee9358c67bac1cc52292cec97b505ff23020b7 /Modules
parent77df9a157338f694b10961c44dfe48f7a39b3ad2 (diff)
downloadcpython-b27cbec801e17a13d7fef49116a8fc279930d2b1.zip
cpython-b27cbec801e17a13d7fef49116a8fc279930d2b1.tar.gz
cpython-b27cbec801e17a13d7fef49116a8fc279930d2b1.tar.bz2
bpo-37055: fix warnings in _blake2 module (GH-14646)
https://bugs.python.org/issue37055 Automerge-Triggered-By: @tiran
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_blake2/impl/blake2.h5
-rw-r--r--Modules/_blake2/impl/blake2b.c7
-rw-r--r--Modules/_blake2/impl/blake2s.c7
3 files changed, 0 insertions, 19 deletions
diff --git a/Modules/_blake2/impl/blake2.h b/Modules/_blake2/impl/blake2.h
index 5ca17f6..a08d82e 100644
--- a/Modules/_blake2/impl/blake2.h
+++ b/Modules/_blake2/impl/blake2.h
@@ -169,11 +169,6 @@ extern "C" {
BLAKE2_API int blake2sp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
BLAKE2_API int blake2bp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
- static inline int blake2( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen )
- {
- return blake2b( out, in, key, outlen, inlen, keylen );
- }
-
#if defined(__cplusplus)
}
#endif
diff --git a/Modules/_blake2/impl/blake2b.c b/Modules/_blake2/impl/blake2b.c
index ca15046..3d3e465 100644
--- a/Modules/_blake2/impl/blake2b.c
+++ b/Modules/_blake2/impl/blake2b.c
@@ -189,13 +189,6 @@ static inline int blake2b_init0( blake2b_state *S )
-#define blake2b_init BLAKE2_IMPL_NAME(blake2b_init)
-#define blake2b_init_param BLAKE2_IMPL_NAME(blake2b_init_param)
-#define blake2b_init_key BLAKE2_IMPL_NAME(blake2b_init_key)
-#define blake2b_update BLAKE2_IMPL_NAME(blake2b_update)
-#define blake2b_final BLAKE2_IMPL_NAME(blake2b_final)
-#define blake2b BLAKE2_IMPL_NAME(blake2b)
-
#if defined(__cplusplus)
extern "C" {
#endif
diff --git a/Modules/_blake2/impl/blake2s.c b/Modules/_blake2/impl/blake2s.c
index 0c3636e..3a04328 100644
--- a/Modules/_blake2/impl/blake2s.c
+++ b/Modules/_blake2/impl/blake2s.c
@@ -175,13 +175,6 @@ static inline int blake2s_init0( blake2s_state *S )
return 0;
}
-#define blake2s_init BLAKE2_IMPL_NAME(blake2s_init)
-#define blake2s_init_param BLAKE2_IMPL_NAME(blake2s_init_param)
-#define blake2s_init_key BLAKE2_IMPL_NAME(blake2s_init_key)
-#define blake2s_update BLAKE2_IMPL_NAME(blake2s_update)
-#define blake2s_final BLAKE2_IMPL_NAME(blake2s_final)
-#define blake2s BLAKE2_IMPL_NAME(blake2s)
-
#if defined(__cplusplus)
extern "C" {
#endif