diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp index 3fcc7abca5c5..a22462bd68fc 100644 --- a/clang/lib/Sema/SemaOpenMP.cpp +++ b/clang/lib/Sema/SemaOpenMP.cpp @@ -739,6 +739,7 @@ public: for (llvm::omp::TraitProperty Trait : llvm::reverse(Traits)) { llvm::omp::TraitProperty Top = ConstructTraits.pop_back_val(); assert(Top == Trait && "Something left a trait on the stack!"); + (void)Trait; (void)Top; } }