[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [Qemu-devel] [PATCH v2] tests/libqtest: Print error i
Re: [Qemu-trivial] [Qemu-devel] [PATCH v2] tests/libqtest: Print error instead of aborting when env variable is missing
Tue, 23 May 2017 09:59:27 +0200
Thomas Huth, on mar. 23 mai 2017 09:25:30 +0200, wrote:
> > /tmp/qemu-test/src/slirp/tcp_input.c: In function ‘tcp_input’:
> > /tmp/qemu-test/src/slirp/tcp_input.c:219: warning: ‘save_ip.ip_p’ may be
> > used uninitialized in this function
> I've never seen these warnings in tcp_input.c before ... and they also
> look like false positives too me ...
They are. It's the classical false-positive:
foo = 1;
where gcc doesn't realize it's the same condition between the
initialization and the use.
If that poses problem, we can force a dumb initialization...