public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/91225] Warning should be produced for a variable initialized by itself at the declaration
       [not found] <bug-91225-4@http.gcc.gnu.org/bugzilla/>
@ 2023-11-27 23:44 ` pinskia at gcc dot gnu.org
  2023-11-27 23:52 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-27 23:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91225

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kxiang at umich dot edu

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 112739 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c/91225] Warning should be produced for a variable initialized by itself at the declaration
       [not found] <bug-91225-4@http.gcc.gnu.org/bugzilla/>
  2023-11-27 23:44 ` [Bug c/91225] Warning should be produced for a variable initialized by itself at the declaration pinskia at gcc dot gnu.org
@ 2023-11-27 23:52 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-27 23:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91225

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
           Keywords|diagnostic                  |documentation
             Status|NEW                         |RESOLVED

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---



Actually this is documented from
https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gcc/Warning-Options.html#index-Wuninitialized:
If you want to warn about code that uses the uninitialized value of the
variable in its own initializer, use the -Winit-self option.


Which has been documented this way since -Wself-init was added back in
r0-52301-g3390f9c9bef0be .

So this is again folks not reading the documentation.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-27 23:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-91225-4@http.gcc.gnu.org/bugzilla/>
2023-11-27 23:44 ` [Bug c/91225] Warning should be produced for a variable initialized by itself at the declaration pinskia at gcc dot gnu.org
2023-11-27 23:52 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).