r258598 - SemaOpenMP.cpp: Fix a warning in r258543. [-Wunused-variable]
NAKAMURA Takumi via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 22 17:38:20 PST 2016
Author: chapuni
Date: Fri Jan 22 19:38:20 2016
New Revision: 258598
URL: http://llvm.org/viewvc/llvm-project?rev=258598&view=rev
Log:
SemaOpenMP.cpp: Fix a warning in r258543. [-Wunused-variable]
Modified:
cfe/trunk/lib/Sema/SemaOpenMP.cpp
Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaOpenMP.cpp?rev=258598&r1=258597&r2=258598&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaOpenMP.cpp (original)
+++ cfe/trunk/lib/Sema/SemaOpenMP.cpp Fri Jan 22 19:38:20 2016
@@ -9007,6 +9007,7 @@ Sema::ActOnOpenMPMapClause(OpenMPMapClau
auto *FD = dyn_cast<FieldDecl>(D);
assert((VD || FD) && "Only variables or fields are expected here!");
+ (void)FD;
// OpenMP 4.5 [2.15.5.1, map Clause, Restrictions, p.10]
// threadprivate variables cannot appear in a map clause.
More information about the cfe-commits
mailing list