From 2bb86b67447661077e30674eab7b8a27f8234b3f Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 9 Oct 2022 23:39:23 +0100 Subject: [PATCH] [clang] Mention -Werror changes revived for Clang 16 -Wimplicit-function-declaration and -Wimplicit-int become errors by default in Clang 16 (originally in 15, but we reverted it in 15.0.1). Mention it in the release notes like we did originally for Clang 15. See https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213 for more context. Signed-off-by: Sam James Differential Revision: https://reviews.llvm.org/D135545 --- clang/docs/ReleaseNotes.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index bb32cad..29550f53 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/docs/ReleaseNotes.rst @@ -61,6 +61,17 @@ code bases. into an error-only diagnostic in the next Clang release. Fixes `Issue 50055 `_. +- The ``-Wimplicit-function-declaration`` and ``-Wimplicit-int`` warnings + now default to an error in C99, C11, and C17. As of C2x, + support for implicit function declarations and implicit int has been removed, + and the warning options will have no effect. Specifying ``-Wimplicit-int`` in + C89 mode will now issue warnings instead of being a noop. + + **NOTE**: We recommend that projects using configure scripts verify that the + results do not change before/after setting + ``-Werror=implicit-function-declarations`` or ``-Wimplicit-int`` to avoid + incompatibility with Clang 16. + - ``-Wincompatible-function-pointer-types`` now defaults to an error in all C language modes. It may be downgraded to a warning with ``-Wno-error=incompatible-function-pointer-types`` or disabled entirely with -- 2.7.4