]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Avoid variable named 'stat'
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 14 Dec 2016 12:17:08 +0000 (12:17 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 14 Dec 2016 12:17:08 +0000 (12:17 +0000)
commita81cfb649dc80e979c2f0e4c8703261c3dac066d
tree3d0e16d95da9f34ccaa050628737049464c5b090
parent8f448d619a12f84996088d161113e7bf08c6dad9
Avoid variable named 'stat'

Using a variable named 'stat' clashes with the system function
'stat()' causing compiler warnings on some platforms

cc1: warnings being treated as errors
../../src/qemu/qemu_monitor_text.c: In function 'parseMemoryStat':
../../src/qemu/qemu_monitor_text.c:604: error: declaration of 'stat' shadows a global declaration [-Wshadow]
/usr/include/sys/stat.h:455: error: shadowed declaration is here [-Wshadow]

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/qemu/qemu_monitor_text.c