diff options
author | 0x9fff00 | 2021-05-26 14:30:15 +0200 |
---|---|---|
committer | 0x9fff00 | 2021-05-26 14:30:15 +0200 |
commit | 9a6a35b031d527daf3907a7dc02615f930fdafd1 (patch) | |
tree | 6d62b94b757db8afb1c081baa0136ab7f4e591fb /0001-Fix-compile-error-with-GCC-11.patch | |
parent | 2398c2a6e39d94804aa7d918b5f210330e8bf9e7 (diff) | |
download | aur-9a6a35b031d527daf3907a7dc02615f930fdafd1.tar.gz |
Fix compile error with GCC 11
Diffstat (limited to '0001-Fix-compile-error-with-GCC-11.patch')
-rw-r--r-- | 0001-Fix-compile-error-with-GCC-11.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/0001-Fix-compile-error-with-GCC-11.patch b/0001-Fix-compile-error-with-GCC-11.patch new file mode 100644 index 000000000000..cbd5cf7d2328 --- /dev/null +++ b/0001-Fix-compile-error-with-GCC-11.patch @@ -0,0 +1,48 @@ +From fcd5f2d0dd11c1c873c9e280c67a362d698aebc6 Mon Sep 17 00:00:00 2001 +From: 0x9fff00 <0x9fff00+git@protonmail.ch> +Date: Wed, 26 May 2021 14:14:30 +0200 +Subject: [PATCH] Fix compile error with GCC 11 + +Based on https://github.com/JayDDee/cpuminer-opt/commit/3c5e8921b764e03ef09c57b2207b9960d45123b0 + +Co-authored-by: Jay D Dee <jayddee246@gmail.com> +--- + crypto/blake2s.c | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/crypto/blake2s.c b/crypto/blake2s.c +index a20b746..0914b5a 100644 +--- a/crypto/blake2s.c ++++ b/crypto/blake2s.c +@@ -323,7 +323,7 @@ int blake2s_final( blake2s_state *S, uint8_t *out, uint8_t outlen ) + + int blake2s( uint8_t *out, const void *in, const void *key, const uint8_t outlen, const uint64_t inlen, uint8_t keylen ) + { +- blake2s_state S[1]; ++ blake2s_state S; + + /* Verify parameters */ + if ( NULL == in ) return -1; +@@ -334,15 +334,15 @@ int blake2s( uint8_t *out, const void *in, const void *key, const uint8_t outlen + + if( keylen > 0 ) + { +- if( blake2s_init_key( S, outlen, key, keylen ) < 0 ) return -1; ++ if( blake2s_init_key( &S, outlen, key, keylen ) < 0 ) return -1; + } + else + { +- if( blake2s_init( S, outlen ) < 0 ) return -1; ++ if( blake2s_init( &S, outlen ) < 0 ) return -1; + } + +- blake2s_update( S, ( uint8_t * )in, inlen ); +- blake2s_final( S, out, outlen ); ++ blake2s_update( &S, ( uint8_t * )in, inlen ); ++ blake2s_final( &S, out, outlen ); + return 0; + } + +-- +2.31.1 + |