[all-commits] [llvm/llvm-project] f3ca99: [clang][OpenMP] Fix unused var warning
David Spickett via All-commits
all-commits at lists.llvm.org
Mon Jun 26 08:21:44 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f3ca99a87c566fb5e910071f4cbb474ddb4e7f37
https://github.com/llvm/llvm-project/commit/f3ca99a87c566fb5e910071f4cbb474ddb4e7f37
Author: David Spickett <david.spickett at linaro.org>
Date: 2023-06-26 (Mon, 26 Jun 2023)
Changed paths:
M clang/lib/Sema/SemaOpenMP.cpp
Log Message:
-----------
[clang][OpenMP] Fix unused var warning
This was added by 453e02ca0903c9f65529d21c513925ab0fdea1e1.Use
isa instead since we don't use the result.
Fixes:
<..>SemaOpenMP.cpp:23149:13: warning: unused variable ‘TargetVarDecl’ [-Wunused-variable]
23149 | if (auto *TargetVarDecl = dyn_cast_or_null<VarDecl>(TargetDecl))
| ^~~~~~~~~~~~~
Which came up when building with GCC 9.
More information about the All-commits
mailing list