Skip to content

Commit 500eca3

Browse files
bnoordhuisMayaLekova
authored andcommitted
test: fix cctest -Wunused-variable warning
PR-URL: nodejs#18530 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent 1c9112f commit 500eca3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/cctest/test_node_postmortem_metadata.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ TEST_F(DebugSymbolsTest, ReqWrapList) {
130130
// NOTE (mmarchini): Workaround to fix failing tests on ARM64 machines with
131131
// older GCC. Should be removed once we upgrade the GCC version used on our
132132
// ARM64 CI machinies.
133-
for (auto it : *(*env)->req_wrap_queue()) {}
133+
for (auto it : *(*env)->req_wrap_queue()) (void) &it;
134134

135135
auto queue = reinterpret_cast<uintptr_t>((*env)->req_wrap_queue());
136136
auto head = queue +

0 commit comments

Comments
 (0)