Skip to content

Commit

Permalink
[flang] Fix an unused variable warning
Browse files Browse the repository at this point in the history
This patch fixes:

  flang/lib/Lower/OpenACC.cpp:876:14: error: unused variable
  'nbRangeArgs' [-Werror,-Wunused-variable]
  • Loading branch information
kazutakahirata committed Sep 28, 2023
1 parent 2b2d79f commit 33f5087
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flang/lib/Lower/OpenACC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,7 @@ static void genCombiner(fir::FirOpBuilder &builder, mlir::Location loc,
unsigned nbRangeArgs = recipe.getCombinerRegion().getArguments().size() - 2;
assert((nbRangeArgs / 3 == seqTy.getDimension()) &&
"Expect 3 block arguments per dimension");
(ovid) nbRangeArgs;
llvm::SmallVector<fir::DoLoopOp> loops;
llvm::SmallVector<mlir::Value> ivs;
for (unsigned i = 2; i < recipe.getCombinerRegion().getArguments().size();
Expand Down

0 comments on commit 33f5087

Please sign in to comment.