[PATCH] D135545: [clang] Mention -Werror changes revived for Clang 16

Sam James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 9 15:44:16 PDT 2022


thesamesam created this revision.
thesamesam added reviewers: aaron.ballman, mgorny, MaskRay.
thesamesam added a project: clang.
Herald added a subscriber: StephenFan.
Herald added a project: All.
thesamesam requested review of this revision.
Herald added a subscriber: cfe-commits.

-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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135545

Files:
  clang/docs/ReleaseNotes.rst


Index: clang/docs/ReleaseNotes.rst
===================================================================
--- clang/docs/ReleaseNotes.rst
+++ clang/docs/ReleaseNotes.rst
@@ -61,6 +61,17 @@
   into an error-only diagnostic in the next Clang release. Fixes
   `Issue 50055 <https://github.com/llvm/llvm-project/issues/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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135545.466395.patch
Type: text/x-patch
Size: 1141 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221009/59536628/attachment-0001.bin>


More information about the cfe-commits mailing list