r219029 - Suppress defined-but-unused warnings

Jingyue Wu jingyue at google.com
Fri Oct 3 15:16:41 PDT 2014


Author: jingyue
Date: Fri Oct  3 17:16:40 2014
New Revision: 219029

URL: http://llvm.org/viewvc/llvm-project?rev=219029&view=rev
Log:
Suppress defined-but-unused warnings

by adding a fake use

Modified:
    cfe/trunk/include/clang/Sema/Lookup.h

Modified: cfe/trunk/include/clang/Sema/Lookup.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Lookup.h?rev=219029&r1=219028&r2=219029&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Lookup.h (original)
+++ cfe/trunk/include/clang/Sema/Lookup.h Fri Oct  3 17:16:40 2014
@@ -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) {





More information about the cfe-commits mailing list