mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-12 04:42:36 -03:00
refactor: Use [[maybe_unused]] attribute
This commit is contained in:
parent
55e0fc8df9
commit
07ddecb84e
1 changed files with 3 additions and 7 deletions
|
@ -586,13 +586,9 @@ std::string SHA256AutoDetect()
|
||||||
bool have_sse4 = false;
|
bool have_sse4 = false;
|
||||||
bool have_xsave = false;
|
bool have_xsave = false;
|
||||||
bool have_avx = false;
|
bool have_avx = false;
|
||||||
bool have_avx2 = false;
|
[[maybe_unused]] bool have_avx2 = false;
|
||||||
bool have_x86_shani = false;
|
[[maybe_unused]] bool have_x86_shani = false;
|
||||||
bool enabled_avx = false;
|
[[maybe_unused]] bool enabled_avx = false;
|
||||||
|
|
||||||
(void)have_avx2;
|
|
||||||
(void)have_x86_shani;
|
|
||||||
(void)enabled_avx;
|
|
||||||
|
|
||||||
uint32_t eax, ebx, ecx, edx;
|
uint32_t eax, ebx, ecx, edx;
|
||||||
GetCPUID(1, 0, eax, ebx, ecx, edx);
|
GetCPUID(1, 0, eax, ebx, ecx, edx);
|
||||||
|
|
Loading…
Reference in a new issue