[Bug c/38961] if () block not true but a command in it is still in effect

falk at debian dot org gcc-bugzilla@gcc.gnu.org
Sat Jan 24 17:48:00 GMT 2009



------- Comment #1 from falk at debian dot org  2009-01-24 17:48 -------
const char *logout_cmd = logout_cmd;

actually initializes the variable with its own (uninitialized) value.

You can get a warning about this with "-Winit-self".


-- 

falk at debian dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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



More information about the Gcc-bugs mailing list