]> granicus.if.org Git - clang/commitdiff
Add -Winfinite-recursion to -Wmost (and -Wall), PR23789.
authorNico Weber <nicolasweber@gmx.de>
Thu, 18 Jun 2015 21:09:24 +0000 (21:09 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 18 Jun 2015 21:09:24 +0000 (21:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240056 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticGroups.td
test/Sema/warn-unused-function.c

index 016c2e198e3a80fee9a2b1e224a8d11942ec5a32..13dcc73dd1330c9809dfa86b48d6e9c2fb0aa8bd 100644 (file)
@@ -598,6 +598,7 @@ def Most : DiagGroup<"most", [
     DeleteNonVirtualDtor,
     Format,
     Implicit,
+    InfiniteRecursion,
     MismatchedTags,
     MissingBraces,
     Move,
index 013b925f89d85c51d28dcb0fd2a013f1fe621cc1..6d813669d6c93b4bfb146c5002fc2ab57fe7b9bc 100644 (file)
@@ -1,6 +1,6 @@
 // RUN: %clang_cc1 -fsyntax-only -Wused-but-marked-unused -Wunused-function -Wunneeded-internal-declaration -verify %s
 // RUN: %clang_cc1 -fsyntax-only -verify -Wunused %s
-// RUN: %clang_cc1 -fsyntax-only -verify -Wall %s
+// RUN: %clang_cc1 -fsyntax-only -verify -Wall -Wno-infinite-recursion %s
 
 void foo() {}
 static void f2() {}