Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] Fix an "variable might be used uninitialized" gcc warning

From: Andreas Schwab <hidden>
Date: 2016-06-15 22:52:39

Jonathan Nieder [off-list ref] writes:
Ramsay Jones wrote:
quoted
        CC builtin/checkout.o
    builtin/checkout.c: In function `cmd_checkout':
    builtin/checkout.c:160: warning: 'mode' might be used uninitialized \
        in this function
[...]
quoted
[Note that only 2 out of the 3 versions of gcc I use issues this
warning]
Which version of gcc is that?  Is gcc getting more sane, so we won't
have to worry about this after a while, or is the false positive a
new regression that should be reported to them?
The regression is that the function has been changed in a way that makes
it impossible to infer the intended flow.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help