Skip to content

Commit b7564c4

Browse files
bnoordhuisrvagg
authored andcommitted
test: fix cctest -Wunused-variable warning
Backport-PR-URL: #19176 PR-URL: #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 0564454 commit b7564c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)