https://gcc.gnu.org/g:128b0e70f2c3a17eb7bf490b6e23dfd8b4b729d3
commit r16-7026-g128b0e70f2c3a17eb7bf490b6e23dfd8b4b729d3 Author: Sandra Loosemore <[email protected]> Date: Sun Jan 11 20:43:11 2026 +0000 doc: Add missing index entries for -Wno-* options [PR122243] This patch was initially mechanically generated but has been hand-checked and corrected where necessary. gcc/ChangeLog PR other/122243 * doc/cppwarnopts.texi: Add missing @opindex entries for -Wno-* options. * doc/invoke.texi: Likewise. Diff: --- gcc/doc/cppwarnopts.texi | 5 +++++ gcc/doc/invoke.texi | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/gcc/doc/cppwarnopts.texi b/gcc/doc/cppwarnopts.texi index dfe21de812fa..354336c5b909 100644 --- a/gcc/doc/cppwarnopts.texi +++ b/gcc/doc/cppwarnopts.texi @@ -10,7 +10,9 @@ @c formatted for inclusion in the CPP manual; otherwise the main GCC manual. @opindex Wcomment +@opindex Wno-comment @opindex Wcomments +@opindex Wno-comments @item -Wcomment @itemx -Wcomments Warn whenever a comment-start sequence @samp{/*} appears in a @samp{/*} @@ -18,6 +20,7 @@ comment, or whenever a backslash-newline appears in a @samp{//} comment. This warning is enabled by @option{-Wall}. @opindex Wtrigraphs +@opindex Wno-trigraphs @item -Wtrigraphs @anchor{Wtrigraphs} Warn if any trigraphs are encountered that might change the meaning of @@ -36,6 +39,7 @@ Warn if an undefined identifier is evaluated in an @code{#if} directive. Such identifiers are replaced with zero. @opindex Wexpansion-to-defined +@opindex Wno-expansion-to-defined @item -Wexpansion-to-defined Warn whenever @samp{defined} is encountered in the expansion of a macro (including the case where the macro is expanded by an @samp{#if} directive). @@ -43,6 +47,7 @@ Such usage is not portable. This warning is also enabled by @option{-Wpedantic} and @option{-Wextra}. @opindex Wunused-macros +@opindex Wno-unused-macros @item -Wunused-macros Warn about macros defined in the main file that are unused. A macro is @dfn{used} if it is expanded or tested for existence at least once. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 61881299bd7d..2a25af0ee40b 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -3911,6 +3911,7 @@ In addition, these warning options have meanings only for C++ programs: @table @gcctabopt @opindex Wabi-tag +@opindex Wno-abi-tag @item -Wabi-tag @r{(C++ and Objective-C++ only)} Warn when a type with an ABI tag is used in a context that does not have that ABI tag. See @ref{C++ Attributes} for more information @@ -5393,6 +5394,7 @@ methods inherited from the superclass are considered to be implemented, and no warning is issued for them. @opindex Wobjc-root-class +@opindex Wno-objc-root-class @item -Wobjc-root-class @r{(Objective-C and Objective-C++ only)} Warn if a class interface lacks a superclass. Most classes will inherit from @code{NSObject} (or @code{Object}) for example. When declaring @@ -9461,7 +9463,7 @@ This warning is upgraded to an error by @option{-pedantic-errors}. Warn when a literal @samp{0} is used as null pointer constant. @opindex Wzero-length-bounds -@opindex Wzero-length-bounds +@opindex Wno-zero-length-bounds @item -Wzero-length-bounds Warn about accesses to elements of zero-length array members that might overlap other members of the same object. Declaring interior zero-length @@ -9720,15 +9722,18 @@ Do not warn whenever a local variable shadows an instance variable in an Objective-C method. @opindex Wshadow=global +@opindex Wno-shadow=global @item -Wshadow=global Warn for any shadowing. Same as @option{-Wshadow}. @opindex Wshadow=local +@opindex Wno-shadow=local @item -Wshadow=local Warn when a local variable shadows another local variable or parameter. @opindex Wshadow=compatible-local +@opindex Wno-shadow=compatible-local @item -Wshadow=compatible-local Warn when a local variable shadows another local variable or parameter whose type is compatible with that of the shadowing variable. In C++, @@ -10107,7 +10112,7 @@ an @code{int *} on machines where integers can only be accessed at two- or four-byte boundaries. @opindex Wcast-align=strict -@item -Wcast-align=strict +@opindex Wno-cast-align=strict Warn whenever a pointer is cast such that the required alignment of the target is increased. For example, warn if a @code{char *} is cast to an @code{int *} regardless of the target machine. @@ -10189,6 +10194,7 @@ This option can also be used to disable warnings like produced by @option{-gctf} or @option{-gsctf} for unsupported languages. @opindex Wcompare-distinct-pointer-types +@opindex Wno-compare-distinct-pointer-types @item -Wcompare-distinct-pointer-types @r{(C and Objective-C only)} Warn if pointers of distinct types are compared without a cast. This warning is enabled by default. @@ -10699,6 +10705,7 @@ into an error if building for a C version before C23 by @option{-pedantic-errors}. @opindex Wheader-guard +@opindex Wno-header-guard @item -Wheader-guard Warn if a valid preprocessor header multiple inclusion guard has a @code{#define} directive right after @code{#ifndef} or @code{#if !defined} @@ -11180,6 +11187,7 @@ seemingly insignificant changes in the source program can cause the warnings produced by @option{-Winline} to appear or disappear. @opindex Winterference-size +@opindex Wno-interference-size @item -Winterference-size Warn about use of C++17 @code{std::hardware_destructive_interference_size} without specifying its value with @option{--param destructive-interference-size}.
