[cfe-commits] r96375 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td test/Sema/warn-unused-function.c
Daniel Dunbar
daniel at zuster.org
Tue Feb 16 11:45:01 PST 2010
Author: ddunbar
Date: Tue Feb 16 13:44:56 2010
New Revision: 96375
URL: http://llvm.org/viewvc/llvm-project?rev=96375&view=rev
Log:
Disable warn_unused_function for now, its breaking various project builds due to
false positives.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/test/Sema/warn-unused-function.c
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=96375&r1=96374&r2=96375&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Tue Feb 16 13:44:56 2010
@@ -88,8 +88,10 @@
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;
Modified: cfe/trunk/test/Sema/warn-unused-function.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/warn-unused-function.c?rev=96375&r1=96374&r2=96375&view=diff
==============================================================================
--- cfe/trunk/test/Sema/warn-unused-function.c (original)
+++ cfe/trunk/test/Sema/warn-unused-function.c Tue Feb 16 13:44:56 2010
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -Wunused-function -verify %s
+// XFAIL: *
void foo() {}
static void f2() {}
@@ -13,4 +14,4 @@
// 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() { }
More information about the cfe-commits
mailing list