[cfe-commits] r144365 - in /cfe/trunk: include/clang/Basic/DiagnosticDriverKinds.td test/Misc/warning-flags.c
Ted Kremenek
kremenek at apple.com
Thu Nov 10 19:58:21 PST 2011
Author: kremenek
Date: Thu Nov 10 21:58:21 2011
New Revision: 144365
URL: http://llvm.org/viewvc/llvm-project?rev=144365&view=rev
Log:
Place 'argument unused during compilation' under a -W flag. Fixes <rdar://problem/10403653>.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticDriverKinds.td
cfe/trunk/test/Misc/warning-flags.c
Modified: cfe/trunk/include/clang/Basic/DiagnosticDriverKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticDriverKinds.td?rev=144365&r1=144364&r2=144365&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticDriverKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticDriverKinds.td Thu Nov 10 21:58:21 2011
@@ -101,7 +101,8 @@
def warn_drv_preprocessed_input_file_unused : Warning<
"%0: previously preprocessed input unused when '%1' is present">;
def warn_drv_unused_argument : Warning<
- "argument unused during compilation: '%0'">;
+ "argument unused during compilation: '%0'">,
+ InGroup<DiagGroup<"unused-command-line-argument">>;
def warn_drv_pipe_ignored_with_save_temps : Warning<
"-pipe ignored because -save-temps specified">;
def warn_drv_not_using_clang_cpp : Warning<
Modified: cfe/trunk/test/Misc/warning-flags.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Misc/warning-flags.c?rev=144365&r1=144364&r2=144365&view=diff
==============================================================================
--- cfe/trunk/test/Misc/warning-flags.c (original)
+++ cfe/trunk/test/Misc/warning-flags.c Thu Nov 10 21:58:21 2011
@@ -17,7 +17,7 @@
The list of warnings below should NEVER grow. It should gradually shrink to 0.
-CHECK: Warnings without flags (278):
+CHECK: Warnings without flags (277):
CHECK-NEXT: ext_anon_param_requires_type_specifier
CHECK-NEXT: ext_anonymous_struct_union_qualified
CHECK-NEXT: ext_array_init_copy
@@ -161,7 +161,6 @@
CHECK-NEXT: warn_drv_pipe_ignored_with_save_temps
CHECK-NEXT: warn_drv_preprocessed_input_file_unused
CHECK-NEXT: warn_drv_unsupported_option_argument
-CHECK-NEXT: warn_drv_unused_argument
CHECK-NEXT: warn_dup_category_def
CHECK-NEXT: warn_duplicate_protocol_def
CHECK-NEXT: warn_enum_too_large
More information about the cfe-commits
mailing list