[cfe-commits] r100786 - in /cfe/trunk: include/clang/Basic/DiagnosticGroups.td test/Sema/warn-unused-function.c test/Sema/warn-unused-value.c
Ted Kremenek
kremenek at apple.com
Thu Apr 8 10:54:28 PDT 2010
Author: kremenek
Date: Thu Apr 8 12:54:28 2010
New Revision: 100786
URL: http://llvm.org/viewvc/llvm-project?rev=100786&view=rev
Log:
Include all warnings under '-Wunused' in '-Wmost' and '-Wall'.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticGroups.td
cfe/trunk/test/Sema/warn-unused-function.c
cfe/trunk/test/Sema/warn-unused-value.c
Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticGroups.td?rev=100786&r1=100785&r2=100786&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticGroups.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td Thu Apr 8 12:54:28 2010
@@ -169,8 +169,7 @@
Trigraphs,
Uninitialized,
UnknownPragmas,
- UnusedValue,
- UnusedVariable,
+ Unused,
VectorConversions,
VolatileRegisterVar
]>;
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=100786&r1=100785&r2=100786&view=diff
==============================================================================
--- cfe/trunk/test/Sema/warn-unused-function.c (original)
+++ cfe/trunk/test/Sema/warn-unused-function.c Thu Apr 8 12:54:28 2010
@@ -1,4 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -Wunused-function -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify -Wunused %s
+// RUN: %clang_cc1 -fsyntax-only -verify -Wall %s
void foo() {}
static void f2() {}
Modified: cfe/trunk/test/Sema/warn-unused-value.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/warn-unused-value.c?rev=100786&r1=100785&r2=100786&view=diff
==============================================================================
--- cfe/trunk/test/Sema/warn-unused-value.c (original)
+++ cfe/trunk/test/Sema/warn-unused-value.c Thu Apr 8 12:54:28 2010
@@ -1,4 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -verify -Wunused-value %s
+// RUN: %clang_cc1 -fsyntax-only -verify -Wunused %s
+// RUN: %clang_cc1 -fsyntax-only -verify -Wall %s
int i = 0;
int j = 0;
More information about the cfe-commits
mailing list