[flang-commits] [flang] 73c646a - [flang] Fix warning when with clang-cl/msvc

David Spickett via flang-commits flang-commits at lists.llvm.org
Thu Feb 22 04:59:45 PST 2024


Author: David Spickett
Date: 2024-02-22T12:59:32Z
New Revision: 73c646a3b27293f8cb4ba120de7bc01c223b4b5f

URL: https://github.com/llvm/llvm-project/commit/73c646a3b27293f8cb4ba120de7bc01c223b4b5f
DIFF: https://github.com/llvm/llvm-project/commit/73c646a3b27293f8cb4ba120de7bc01c223b4b5f.diff

LOG: [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.

Added: 
    

Modified: 
    flang/lib/Evaluate/fold-integer.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Evaluate/fold-integer.cpp b/flang/lib/Evaluate/fold-integer.cpp
index 0e8706e0f27405..09b2f91debda29 100644
--- a/flang/lib/Evaluate/fold-integer.cpp
+++ b/flang/lib/Evaluate/fold-integer.cpp
@@ -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));


        


More information about the flang-commits mailing list