public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/58323] New: [-Wall] No warning when uninitialized integer
@ 2013-09-05 11:42 tkhai at yandex dot ru
  0 siblings, 0 replies; only message in thread
From: tkhai at yandex dot ru @ 2013-09-05 11:42 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58323

            Bug ID: 58323
           Summary: [-Wall] No warning when uninitialized integer
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tkhai at yandex dot ru

Hi,

the following example compiles without warnings:

$ cat a.c
int func (int p)
{
        int x;
        if (p != 0)
                x = 1;
        return x;
}

$ gcc -c a.c -Wall
(no messages)

According to Ian Lance Taylor, this is a BUG:
http://gcc.gnu.org/ml/gcc/2013-09/msg00033.html

My gcc version is 4.4.5. I can't try newer versions.

Kirill


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-05 11:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-05 11:42 [Bug c/58323] New: [-Wall] No warning when uninitialized integer tkhai at yandex dot ru

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