Skip to content

Commit 55e0fc8

Browse files
committed
refactor: Drop unneeded workarounds aimed to silence unused warning
All of the touched symbols are indeed used regardless of any macros.
1 parent 0baf6ad commit 55e0fc8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/crypto/sha256.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -590,10 +590,6 @@ std::string SHA256AutoDetect()
590590
bool have_x86_shani = false;
591591
bool enabled_avx = false;
592592

593-
(void)AVXEnabled;
594-
(void)have_sse4;
595-
(void)have_avx;
596-
(void)have_xsave;
597593
(void)have_avx2;
598594
(void)have_x86_shani;
599595
(void)enabled_avx;
@@ -641,7 +637,7 @@ std::string SHA256AutoDetect()
641637
ret += ",avx2(8way)";
642638
}
643639
#endif
644-
#endif
640+
#endif // defined(USE_ASM) && defined(HAVE_GETCPUID)
645641

646642
#if defined(ENABLE_ARM_SHANI) && !defined(BUILD_BITCOIN_INTERNAL)
647643
bool have_arm_shani = false;

0 commit comments

Comments
 (0)