Skip to content

Commit 3d1b6ef

Browse files
bnoordhuisMatheus Marchini
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 cad9554 commit 3d1b6ef

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
@@ -129,7 +129,7 @@ TEST_F(DebugSymbolsTest, ReqWrapList) {
129129
// NOTE (mmarchini): Workaround to fix failing tests on ARM64 machines with
130130
// older GCC. Should be removed once we upgrade the GCC version used on our
131131
// ARM64 CI machinies.
132-
for (auto it : *(*env)->req_wrap_queue()) {}
132+
for (auto it : *(*env)->req_wrap_queue()) (void) &it;
133133

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

0 commit comments

Comments
 (0)