From bcac91aafc226f6ea505b3117cc55f566ad48f2d Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Thu, 24 Jan 2013 03:43:15 +0000 Subject: [PATCH] Give warn_redecl_library_builtin a flag name: -Wincompatible-library-redeclaration. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173319 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/DiagnosticSemaKinds.td | 3 ++- test/Misc/warning-flags.c | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index be6ef607ed..b9d0c98962 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -340,7 +340,8 @@ def warn_implicit_decl_requires_ucontext : Warning< "">, InGroup; def warn_redecl_library_builtin : Warning< - "incompatible redeclaration of library function %0">; + "incompatible redeclaration of library function %0">, + InGroup>; 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/test/Misc/warning-flags.c b/test/Misc/warning-flags.c index 3a8c61bed9..3131826e73 100644 --- a/test/Misc/warning-flags.c +++ b/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 -- 2.40.0