From 35cddae18fa876c8bad4731974eb1211487d4258 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 2 Feb 2018 16:25:37 +0100 Subject: [PATCH] test: fix cctest -Wunused-variable warning Backport-PR-URL: https://github.com/nodejs/node/pull/18550 PR-URL: https://github.com/nodejs/node/pull/18530 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Joyee Cheung Reviewed-By: Daniel Bevenius --- test/cctest/test_node_postmortem_metadata.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cctest/test_node_postmortem_metadata.cc b/test/cctest/test_node_postmortem_metadata.cc index 9ba6e15593a019..72e6abb585f75c 100644 --- a/test/cctest/test_node_postmortem_metadata.cc +++ b/test/cctest/test_node_postmortem_metadata.cc @@ -130,7 +130,7 @@ TEST_F(DebugSymbolsTest, ReqWrapList) { // NOTE (mmarchini): Workaround to fix failing tests on ARM64 machines with // older GCC. Should be removed once we upgrade the GCC version used on our // ARM64 CI machinies. - for (auto it : *(*env)->req_wrap_queue()) {} + for (auto it : *(*env)->req_wrap_queue()) (void) ⁢ auto queue = reinterpret_cast((*env)->req_wrap_queue()); auto head = queue +