From 0c63e8f39642fd1218358b268b0c10a733e6148c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 4 May 2018 12:42:05 -0400 Subject: [PATCH] fuzz_with_unicorn: Silence unused variable warning Currently, structured bindings don't provide a way to ignore unused variables. --- tests/A64/fuzz_with_unicorn.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/A64/fuzz_with_unicorn.cpp b/tests/A64/fuzz_with_unicorn.cpp index ae7fcfde..ff7c2186 100644 --- a/tests/A64/fuzz_with_unicorn.cpp +++ b/tests/A64/fuzz_with_unicorn.cpp @@ -124,6 +124,8 @@ static u32 GenFloatInst(u64 pc, bool is_last_inst) { std::vector result; for (const auto& [fn, name, bitstring] : list) { + (void)name; + if (fn[0] != 'F') { continue; } else if (std::find(do_not_test.begin(), do_not_test.end(), fn) != do_not_test.end()) {