Skip to content

Commit 73c646a

Browse files
committed
[flang] Fix warning when with clang-cl/msvc
\llvm\flang\lib\Evaluate\fold-integer.cpp(705,35): warning: lambda capture 'FromInt64' is not used [-Wunused-lambda-capture] It is intentionally unused.
1 parent c831d83 commit 73c646a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flang/lib/Evaluate/fold-integer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@ Expr<Type<TypeCategory::Integer, KIND>> FoldIntrinsicFunction(
719719
// CharacterUtils<2>::ICHAR(). Can't find a work-around,
720720
// so remove the FromInt64 error checking lambda that
721721
// seems to have caused the proble.
722+
(void)FromInt64;
722723
[](const Scalar<Char> &c) {
723724
return CharacterUtils<Char::kind>::ICHAR(
724725
CharacterUtils<Char::kind>::Resize(c, 1));

0 commit comments

Comments
 (0)