summaryrefslogtreecommitdiffstats
path: root/hw/virtio/virtio-net-pci.c
diff options
context:
space:
mode:
authorThomas Huth2019-01-15 18:23:57 +0100
committerThomas Huth2019-01-22 06:26:32 +0100
commite81e7b52f9d0c49243437d129ca3bc3fcf9289a8 (patch)
tree6b6e6ffb1e9966819373d6162086fc01ff649926 /hw/virtio/virtio-net-pci.c
parentblock: Work-around a bug in libiscsi 1.9.0 when used in gnu99 mode (diff)
downloadqemu-e81e7b52f9d0c49243437d129ca3bc3fcf9289a8.tar.gz
qemu-e81e7b52f9d0c49243437d129ca3bc3fcf9289a8.tar.xz
qemu-e81e7b52f9d0c49243437d129ca3bc3fcf9289a8.zip
seccomp: Work-around GCC 4.x bug in gnu99 mode
We'd like to compile QEMU with -std=gnu99, but GCC 4.8 currently fails to compile qemu-seccomp.c in this mode: qemu-seccomp.c:45:1: error: initializer element is not constant }; ^ qemu-seccomp.c:45:1: error: (near initialization for ‘sched_setscheduler_arg[0]’) This is due to a compiler bug which has just been fixed in GCC 5.0: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 Since we still want to support GCC 4.8 for a while and also want to use gnu99 mode, work-around the issue by expanding the macro manually. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Acked-by: Eduardo Otubo <otubo@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'hw/virtio/virtio-net-pci.c')
0 files changed, 0 insertions, 0 deletions