Skip to content

Commit 91be47d

Browse files
[flang] Fix warnings
This patch fixes: flang/lib/Lower/OpenMP/OpenMP.cpp:3904:9: error: unused variable 'action0' [-Werror,-Wunused-variable] flang/lib/Lower/OpenMP/OpenMP.cpp:3905:9: error: unused variable 'action1' [-Werror,-Wunused-variable]
1 parent bc9f4ed commit 91be47d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flang/lib/Lower/OpenMP/OpenMP.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3911,6 +3911,8 @@ static void genOMP(lower::AbstractConverter &converter, lower::SymMap &symTable,
39113911
// Capturing operation.
39123912
assert(action0 != analysis.None && action1 != analysis.None &&
39133913
"Expexcing two actions");
3914+
(void)action0;
3915+
(void)action1;
39143916
captureOp =
39153917
builder.create<mlir::omp::AtomicCaptureOp>(loc, hint, memOrder);
39163918
// Set the non-atomic insertion point to before the atomic.capture.

0 commit comments

Comments
 (0)