Skip to content

Commit 666679a

Browse files
committed
[flang] Fix -Wunused-but-set-variable in lib/Evaluate
1 parent cd3a4c3 commit 666679a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/lib/Evaluate/fold-real.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,10 @@ Expr<Type<TypeCategory::Real, KIND>> FoldIntrinsicFunction(
202202
}
203203
} else if (name == "abs") { // incl. zabs & cdabs
204204
// Argument can be complex or real
205-
if (auto *x{UnwrapExpr<Expr<SomeReal>>(args[0])}) {
205+
if (UnwrapExpr<Expr<SomeReal>>(args[0])) {
206206
return FoldElementalIntrinsic<T, T>(
207207
context, std::move(funcRef), &Scalar<T>::ABS);
208-
} else if (auto *z{UnwrapExpr<Expr<SomeComplex>>(args[0])}) {
208+
} else if (UnwrapExpr<Expr<SomeComplex>>(args[0])) {
209209
return FoldElementalIntrinsic<T, ComplexT>(context, std::move(funcRef),
210210
ScalarFunc<T, ComplexT>([&name, &context](
211211
const Scalar<ComplexT> &z) -> Scalar<T> {

0 commit comments

Comments
 (0)