[flang-commits] [flang] 0d15081 - [flang] Fix a warning
Kazu Hirata via flang-commits
flang-commits at lists.llvm.org
Tue Jan 14 11:08:59 PST 2025
Author: Kazu Hirata
Date: 2025-01-14T11:08:53-08:00
New Revision: 0d150817c354bc61a48676754288aabbb03570c3
URL: https://github.com/llvm/llvm-project/commit/0d150817c354bc61a48676754288aabbb03570c3
DIFF: https://github.com/llvm/llvm-project/commit/0d150817c354bc61a48676754288aabbb03570c3.diff
LOG: [flang] Fix a warning
This patch fixes:
flang/lib/Lower/OpenMP/OpenMP.cpp:599:15: error: unused variable
'ompEval' [-Werror,-Wunused-variable]
Added:
Modified:
flang/lib/Lower/OpenMP/OpenMP.cpp
Removed:
################################################################################
diff --git a/flang/lib/Lower/OpenMP/OpenMP.cpp b/flang/lib/Lower/OpenMP/OpenMP.cpp
index 826edf7b91824f..158f76250572ea 100644
--- a/flang/lib/Lower/OpenMP/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP/OpenMP.cpp
@@ -600,6 +600,7 @@ static void processHostEvalClauses(lower::AbstractConverter &converter,
assert(ompEval &&
llvm::omp::allTargetSet.test(extractOmpDirective(*ompEval)) &&
"expected TARGET construct evaluation");
+ (void)ompEval;
// Use the whole list of clauses passed to the construct here, rather than the
// ones only applied to omp.target.
More information about the flang-commits
mailing list