Skip to content

Commit

Permalink
[flang] Fix warning when with clang-cl/msvc
Browse files Browse the repository at this point in the history
\llvm\flang\lib\Evaluate\fold-integer.cpp(705,35): warning: lambda capture 'FromInt64' is not used [-Wunused-lambda-capture]

It is intentionally unused.
  • Loading branch information
DavidSpickett committed Feb 22, 2024
1 parent c831d83 commit 73c646a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flang/lib/Evaluate/fold-integer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ Expr<Type<TypeCategory::Integer, KIND>> FoldIntrinsicFunction(
// CharacterUtils<2>::ICHAR(). Can't find a work-around,
// so remove the FromInt64 error checking lambda that
// seems to have caused the proble.
(void)FromInt64;
[](const Scalar<Char> &c) {
return CharacterUtils<Char::kind>::ICHAR(
CharacterUtils<Char::kind>::Resize(c, 1));
Expand Down

0 comments on commit 73c646a

Please sign in to comment.