diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-04-05 13:52:13 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-04-05 13:53:09 +0200 |
commit | 07ddecb84e6097684fa56cfc79c8c2aad76f6604 (patch) | |
tree | cec1ce4e3bedbd0af7c17ef9512322e582310f6e /src/crypto | |
parent | 55e0fc8df9c4045453982888732a0dd7c99ea6d1 (diff) | |
download | bitcoin-07ddecb84e6097684fa56cfc79c8c2aad76f6604.tar.xz |
refactor: Use [[maybe_unused]] attribute
Diffstat (limited to 'src/crypto')
-rw-r--r-- | src/crypto/sha256.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/crypto/sha256.cpp b/src/crypto/sha256.cpp index 9e7212020c..196f81ea16 100644 --- a/src/crypto/sha256.cpp +++ b/src/crypto/sha256.cpp @@ -586,13 +586,9 @@ std::string SHA256AutoDetect() bool have_sse4 = false; bool have_xsave = false; bool have_avx = false; - bool have_avx2 = false; - bool have_x86_shani = false; - bool enabled_avx = false; - - (void)have_avx2; - (void)have_x86_shani; - (void)enabled_avx; + [[maybe_unused]] bool have_avx2 = false; + [[maybe_unused]] bool have_x86_shani = false; + [[maybe_unused]] bool enabled_avx = false; uint32_t eax, ebx, ecx, edx; GetCPUID(1, 0, eax, ebx, ecx, edx); |