From 45a8608d7ba4519ce890b74db20087ba22343c50 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 16 Sep 2021 12:36:45 -0700 Subject: [PATCH] [OpenMP] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off build after D109635 --- clang/lib/Sema/SemaOpenMP.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/Sema/SemaOpenMP.cpp b/clang/lib/Sema/SemaOpenMP.cpp index 3fcc7ab..a22462b 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; } } -- 2.7.4