diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2022-09-14 10:10:56 -0400 |
---|---|---|
committer | Tobias Hieta <tobias@hieta.se> | 2022-09-15 09:10:15 +0200 |
commit | c0141f3c300fbc002cf79404fa0b82b4cb1191df (patch) | |
tree | ec564dcd7c9bab8316ad02d0d621846344e0c8c7 /clang/include | |
parent | 6fe69891d15c69e2832e8158987f9d6179ce43bf (diff) | |
download | llvm-c0141f3c300fbc002cf79404fa0b82b4cb1191df.zip llvm-c0141f3c300fbc002cf79404fa0b82b4cb1191df.tar.gz llvm-c0141f3c300fbc002cf79404fa0b82b4cb1191df.tar.bz2 |
Downgrade implicit int and implicit function declaration to warning only
The changes in Clang 15.0.0 which enabled these diagnostics as a
warning which defaulted to an error caused disruption for people
working on distributions such as Gentoo. There was an explicit request
to downgrade these to be warning-only in Clang 15.0.1 with the
expectation that Clang 16 will default the diagnostics to an error.
See
https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213
for more details on the discussion.
See https://reviews.llvm.org/D133800 for the public review of these
changes.
Diffstat (limited to 'clang/include')
-rw-r--r-- | clang/include/clang/Basic/DiagnosticSemaKinds.td | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index 6ff5b8d..cb46040 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -419,7 +419,7 @@ def warn_implicit_function_decl : Warning< InGroup<ImplicitFunctionDeclare>, DefaultIgnore; def ext_implicit_function_decl_c99 : ExtWarn< "call to undeclared function %0; ISO C99 and later do not support implicit " - "function declarations">, InGroup<ImplicitFunctionDeclare>, DefaultError; + "function declarations">, InGroup<ImplicitFunctionDeclare>; def note_function_suggestion : Note<"did you mean %0?">; def err_ellipsis_first_param : Error< @@ -705,7 +705,7 @@ def ext_implicit_lib_function_decl : ExtWarn< def ext_implicit_lib_function_decl_c99 : ExtWarn< "call to undeclared library function '%0' with type %1; ISO C99 and later " "do not support implicit function declarations">, - InGroup<ImplicitFunctionDeclare>, DefaultError; + InGroup<ImplicitFunctionDeclare>; def note_include_header_or_declare : Note< "include the header <%0> or explicitly provide a declaration for '%1'">; def note_previous_builtin_declaration : Note<"%0 is a builtin with type %1">; @@ -4359,7 +4359,7 @@ def err_ident_list_in_fn_declaration : Error< "a parameter list without types is only allowed in a function definition">; def ext_param_not_declared : ExtWarn< "parameter %0 was not declared, defaults to 'int'; ISO C99 and later do not " - "support implicit int">, InGroup<ImplicitInt>, DefaultError; + "support implicit int">, InGroup<ImplicitInt>; def err_param_default_argument : Error< "C does not support default arguments">; def err_param_default_argument_redefinition : Error< @@ -10029,7 +10029,7 @@ def warn_receiver_forward_class : Warning< def note_method_sent_forward_class : Note<"method %0 is used for the forward class">; def ext_missing_type_specifier : ExtWarn< "type specifier missing, defaults to 'int'; ISO C99 and later do not support " - "implicit int">, InGroup<ImplicitInt>, DefaultError; + "implicit int">, InGroup<ImplicitInt>; def err_missing_type_specifier : Error< "a type specifier is required for all declarations">; def err_decimal_unsupported : Error< |