aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-10-11 01:02:24 +0000
committerTed Kremenek <kremenek@apple.com>2011-10-11 01:02:24 +0000
commite1e7862586b6077a68dea05bcdbb67f63be3057d (patch)
tree65dba57af228f8b9aab4186b4dc776c77da4654b
parent567c60024aa905d9039bbeb905b70172b1d12b40 (diff)
Place diagnostic group ext_typecheck_decl_incomplete_type under a -W flag.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141620 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td3
-rw-r--r--test/Misc/warning-flags.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td
index 8ce63ead9e..a1be656fac 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/include/clang/Basic/DiagnosticSemaKinds.td
@@ -3275,7 +3275,8 @@ def err_typecheck_pointer_arith_void_type : Error<
def err_typecheck_decl_incomplete_type : Error<
"variable has incomplete type %0">;
def ext_typecheck_decl_incomplete_type : ExtWarn<
- "tentative definition of variable with internal linkage has incomplete non-array type %0">;
+ "tentative definition of variable with internal linkage has incomplete non-array type %0">,
+ InGroup<DiagGroup<"tentative-definition-incomplete-type">>;
def err_tentative_def_incomplete_type : Error<
"tentative definition has type %0 that is never completed">;
def err_tentative_def_incomplete_type_arr : Error<
diff --git a/test/Misc/warning-flags.c b/test/Misc/warning-flags.c
index ae5d917939..44d6e9a348 100644
--- a/test/Misc/warning-flags.c
+++ b/test/Misc/warning-flags.c
@@ -17,7 +17,7 @@ This test serves two purposes:
The list of warnings below should NEVER grow. It should gradually shrink to 0.
-CHECK: Warnings without flags (300):
+CHECK: Warnings without flags (299):
CHECK-NEXT: backslash_newline_space
CHECK-NEXT: charize_microsoft_ext
CHECK-NEXT: ext_anon_param_requires_type_specifier
@@ -99,7 +99,6 @@ CHECK-NEXT: ext_typecheck_cond_one_void
CHECK-NEXT: ext_typecheck_convert_int_pointer
CHECK-NEXT: ext_typecheck_convert_pointer_int
CHECK-NEXT: ext_typecheck_convert_pointer_void_func
-CHECK-NEXT: ext_typecheck_decl_incomplete_type
CHECK-NEXT: ext_typecheck_ordered_comparison_of_function_pointers
CHECK-NEXT: ext_typecheck_ordered_comparison_of_pointer_and_zero
CHECK-NEXT: ext_typecheck_ordered_comparison_of_pointer_integer