e1000e: Fix build with gcc 4.6.3 and ust tracing
commitde5dca1b792ada25c29a95c8f84e01f4300aef9c
authorDmitry Fleytman <dmitry@daynix.com>
Sat, 4 Jun 2016 07:02:43 +0000 (4 10:02 +0300)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Jun 2016 08:42:54 +0000 (6 09:42 +0100)
tree71d71b66857e0be480039130d0675010328f2217
parent6b3532b20b787cbd697a68b383232f5c3b39bd1e
e1000e: Fix build with gcc 4.6.3 and ust tracing

This patch fixes used-uninitialized false
positive while compiling with ust tracing
backend plus gcc 4.6.3:

hw/net/e1000e.c: In function ‘e1000e_io_write’:
hw/net/e1000e.c:170:39: error: ‘idx’ may be used uninitialized in this function [-Werror=uninitialized]
hw/net/e1000e.c: In function ‘e1000e_io_read’:
hw/net/e1000e.c:145:35: error: ‘idx’ may be used uninitialized in this function [-Werror=uninitialized]
cc1: all warnings being treated as errors
make: *** [hw/net/e1000e.o] Error 1

Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-id: 1465023763-10773-1-git-send-email-dmitry@daynix.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/net/e1000e.c