diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2013-01-24 03:43:15 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2013-01-24 03:43:15 +0000 |
| commit | 4db15f5101b6d8091ad01c689472c1323ecfb6fd (patch) | |
| tree | 924fe881a6fc135a24a9cf1814671245be9b453d | |
| parent | 92da42406e8135e2b133a85e10483a993889779b (diff) | |
| download | bcm5719-llvm-4db15f5101b6d8091ad01c689472c1323ecfb6fd.tar.gz bcm5719-llvm-4db15f5101b6d8091ad01c689472c1323ecfb6fd.zip | |
Give warn_redecl_library_builtin a flag name: -Wincompatible-library-redeclaration.
llvm-svn: 173319
| -rw-r--r-- | clang/include/clang/Basic/DiagnosticSemaKinds.td | 3 | ||||
| -rw-r--r-- | clang/test/Misc/warning-flags.c | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index be6ef607ede..b9d0c989620 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -340,7 +340,8 @@ def warn_implicit_decl_requires_ucontext : Warning< "<ucontext.h>">, InGroup<BuiltinRequiresHeader>; def warn_redecl_library_builtin : Warning< - "incompatible redeclaration of library function %0">; + "incompatible redeclaration of library function %0">, + InGroup<DiagGroup<"incompatible-library-redeclaration">>; def err_builtin_definition : Error<"definition of builtin function %0">; def err_types_compatible_p_in_cplusplus : Error< "__builtin_types_compatible_p is not valid in C++">; diff --git a/clang/test/Misc/warning-flags.c b/clang/test/Misc/warning-flags.c index 3a8c61bed9f..3131826e737 100644 --- a/clang/test/Misc/warning-flags.c +++ b/clang/test/Misc/warning-flags.c @@ -18,7 +18,7 @@ This test serves two purposes: The list of warnings below should NEVER grow. It should gradually shrink to 0. -CHECK: Warnings without flags (147): +CHECK: Warnings without flags (146): CHECK-NEXT: ext_delete_void_ptr_operand CHECK-NEXT: ext_enum_friend CHECK-NEXT: ext_expected_semi_decl_list @@ -143,7 +143,6 @@ CHECK-NEXT: warn_property_attribute CHECK-NEXT: warn_property_getter_owning_mismatch CHECK-NEXT: warn_property_types_are_incompatible CHECK-NEXT: warn_readonly_property -CHECK-NEXT: warn_redecl_library_builtin CHECK-NEXT: warn_redeclaration_without_attribute_prev_attribute_ignored CHECK-NEXT: warn_register_objc_catch_parm CHECK-NEXT: warn_related_result_type_compatibility_class |

