Skip to content

Commit 07ddecb

Browse files
committed
refactor: Use [[maybe_unused]] attribute
1 parent 55e0fc8 commit 07ddecb

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/crypto/sha256.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -586,13 +586,9 @@ std::string SHA256AutoDetect()
586586
bool have_sse4 = false;
587587
bool have_xsave = false;
588588
bool have_avx = false;
589-
bool have_avx2 = false;
590-
bool have_x86_shani = false;
591-
bool enabled_avx = false;
592-
593-
(void)have_avx2;
594-
(void)have_x86_shani;
595-
(void)enabled_avx;
589+
[[maybe_unused]] bool have_avx2 = false;
590+
[[maybe_unused]] bool have_x86_shani = false;
591+
[[maybe_unused]] bool enabled_avx = false;
596592

597593
uint32_t eax, ebx, ecx, edx;
598594
GetCPUID(1, 0, eax, ebx, ecx, edx);

0 commit comments

Comments
 (0)