]> granicus.if.org Git - clang/commitdiff
Suppress defined-but-unused warnings
authorJingyue Wu <jingyue@google.com>
Fri, 3 Oct 2014 22:16:40 +0000 (22:16 +0000)
committerJingyue Wu <jingyue@google.com>
Fri, 3 Oct 2014 22:16:40 +0000 (22:16 +0000)
by adding a fake use

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219029 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/Lookup.h

index e050c7ddbf115616e340330310abe9d37fac6ee7..067e42210fde3f06ee68ac94d65635f03c1dd01a 100644 (file)
@@ -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) {