From 5da8894590d1a1812058b2f198522d99e4119771 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 21 Mar 2026 20:21:05 +0000 Subject: [PATCH] Fix documentation for -Wno-declaration-after-use. --- Documentation/usage/command_line_flags.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/usage/command_line_flags.rst b/Documentation/usage/command_line_flags.rst index 38255bf34..fb3f7c7bc 100644 --- a/Documentation/usage/command_line_flags.rst +++ b/Documentation/usage/command_line_flags.rst @@ -303,8 +303,12 @@ These flags affect the general behavior of the compiler. * declaration-after-use - With -gno-strict-parameter-declaration, issue a warning when a - parameter is declared after it is used. + This enables warnings for declarations after use, when those are not + flagged as errors (enabled by default). Use no-declaration-after-use + to disable this. + + This flag was added in version 14.0 or later (and is in the master branch + as of 2026-03-21). * macro-redefinition