Skip to content

Commit 35cddae

Browse files
bnoordhuisMylesBorins
authored andcommitted
test: fix cctest -Wunused-variable warning
Backport-PR-URL: #18550 PR-URL: #18530 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
1 parent 46fc507 commit 35cddae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cctest/test_node_postmortem_metadata.cc

+1-1
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)