doc: Fix typo in -Wall description

Message ID 20230217134130.2565745-1-siddhesh@gotplt.org
State Accepted
Headers
Series doc: Fix typo in -Wall description |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Siddhesh Poyarekar Feb. 17, 2023, 1:41 p.m. UTC
  -Wall enables -Wuse-after-free=2 and not -Wuse-after-free=3.

gcc/ChangeLog:

	* gcc/doc/invoke.texi (@item -Wall): Fix typo in
	-Wuse-after-free.

Signed-off-by: Siddhesh Poyarekar <siddhesh@gotplt.org>
---
 gcc/doc/invoke.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Jeff Law Feb. 17, 2023, 7:43 p.m. UTC | #1
On 2/17/23 06:41, Siddhesh Poyarekar wrote:
> -Wall enables -Wuse-after-free=2 and not -Wuse-after-free=3.
> 
> gcc/ChangeLog:
> 
> 	* gcc/doc/invoke.texi (@item -Wall): Fix typo in
> 	-Wuse-after-free.
Looks obvious to me.  If you haven't committed it already, go ahead.

jeff
  
Siddhesh Poyarekar Feb. 17, 2023, 9:15 p.m. UTC | #2
On 2023-02-17 14:43, Jeff Law wrote:
> 
> 
> On 2/17/23 06:41, Siddhesh Poyarekar wrote:
>> -Wall enables -Wuse-after-free=2 and not -Wuse-after-free=3.
>>
>> gcc/ChangeLog:
>>
>>     * gcc/doc/invoke.texi (@item -Wall): Fix typo in
>>     -Wuse-after-free.
> Looks obvious to me.  If you haven't committed it already, go ahead.

Pushed, thanks.

Sid
  

Patch

diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 51447a78584..20d41e19b3c 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -6083,7 +6083,7 @@  Options} and @ref{Objective-C and Objective-C++ Dialect Options}.
 -Wunused-label     @gol
 -Wunused-value     @gol
 -Wunused-variable  @gol
--Wuse-after-free=3  @gol
+-Wuse-after-free=2  @gol
 -Wvla-parameter @r{(C and Objective-C only)} @gol
 -Wvolatile-register-var  @gol
 -Wzero-length-bounds}