From: Jingyue Wu Date: Fri, 3 Oct 2014 22:16:40 +0000 (+0000) Subject: Suppress defined-but-unused warnings X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7a8446e5e936b7d48e75a2b1f915bb89bbe5fb5;p=clang Suppress defined-but-unused warnings by adding a fake use git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219029 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Sema/Lookup.h b/include/clang/Sema/Lookup.h index e050c7ddbf..067e42210f 100644 --- a/include/clang/Sema/Lookup.h +++ b/include/clang/Sema/Lookup.h @@ -436,6 +436,7 @@ public: // If we didn't make the lookup unambiguous, restore the old // ambiguity kind. if (ResultKind == Ambiguous) { + (void)WasAmbiguous; assert(WasAmbiguous); Ambiguity = SavedAK; } else if (Paths) {