diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-04-05 13:23:12 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-04-05 13:53:09 +0200 |
commit | 55e0fc8df9c4045453982888732a0dd7c99ea6d1 (patch) | |
tree | 86375ab020e89e81a7fc2909d1a026c7d7351026 /src | |
parent | 0baf6aded5fa1f98c95cd6bb54089f4412aa6768 (diff) | |
download | bitcoin-55e0fc8df9c4045453982888732a0dd7c99ea6d1.tar.xz |
refactor: Drop unneeded workarounds aimed to silence unused warning
All of the touched symbols are indeed used regardless of any macros.
Diffstat (limited to 'src')
-rw-r--r-- | src/crypto/sha256.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/crypto/sha256.cpp b/src/crypto/sha256.cpp index cde543e68c..9e7212020c 100644 --- a/src/crypto/sha256.cpp +++ b/src/crypto/sha256.cpp @@ -590,10 +590,6 @@ std::string SHA256AutoDetect() bool have_x86_shani = false; bool enabled_avx = false; - (void)AVXEnabled; - (void)have_sse4; - (void)have_avx; - (void)have_xsave; (void)have_avx2; (void)have_x86_shani; (void)enabled_avx; @@ -641,7 +637,7 @@ std::string SHA256AutoDetect() ret += ",avx2(8way)"; } #endif -#endif +#endif // defined(USE_ASM) && defined(HAVE_GETCPUID) #if defined(ENABLE_ARM_SHANI) && !defined(BUILD_BITCOIN_INTERNAL) bool have_arm_shani = false; |