]> granicus.if.org Git - clang/commitdiff
Disable warn_unused_function for now, its breaking various project builds due to
authorDaniel Dunbar <daniel@zuster.org>
Tue, 16 Feb 2010 19:44:56 +0000 (19:44 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 16 Feb 2010 19:44:56 +0000 (19:44 +0000)
false positives.

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

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

index bc834a8478ef34b3956536d9e802a67613848245..a53b259829bf75f31aab4b4e81b9390db440a79d 100644 (file)
@@ -88,8 +88,10 @@ def warn_decl_in_param_list : Warning<
 def err_array_star_in_function_definition : Error<
   "variable length array must be bound in function definition">;
 def warn_unused_function : Warning<"unused function %0">,
-  InGroup<UnusedFunction>, DefaultIgnore;
-  
+// FIXME: Temporarily disabled pending PR6321.
+//  InGroup<UnusedFunction>, DefaultIgnore;
+  DefaultIgnore;
+
 def warn_implicit_function_decl : Warning<
   "implicit declaration of function %0">,
   InGroup<ImplicitFunctionDeclare>, DefaultIgnore;
index 178527f01c0f7226d5e0032abf1dc85c19e38e82..81ea82dd163b9bcc7f4a0a5c146ee35037741bc1 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -fsyntax-only -Wunused-function -verify %s
+// XFAIL: *
 
 void foo() {}
 static void f2() {} 
@@ -13,4 +14,4 @@ extern void f3() { } // expected-warning{{unused}}
 // FIXME: This will trigger a warning when it should not.
 // Update once PR6281 is fixed.
 //inline static void f4();
-//void f4() { } 
\ No newline at end of file
+//void f4() { }