summary refs log tree commit diff stats
path: root/hw/ide/atapi.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-01-17 18:04:11 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2021-01-23 09:26:35 -0500
commitbbf901914170c6ee423beb3b8c510038c16d082f (patch)
tree5a620e4b683dd90213577479a1cca73710b7a1b8 /hw/ide/atapi.c
parentacd15fc2e83ca224cbff3f3548630e67122bfdcd (diff)
downloadfocaccia-qemu-bbf901914170c6ee423beb3b8c510038c16d082f.tar.gz
focaccia-qemu-bbf901914170c6ee423beb3b8c510038c16d082f.zip
softmmu/physmem: Silence GCC 10 maybe-uninitialized error
When building with GCC 10.2 configured with --extra-cflags=-Os, we get:

  softmmu/physmem.c: In function 'address_space_translate_for_iotlb':
  softmmu/physmem.c:643:26: error: 'notifier' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    643 |         notifier->active = true;
        |                          ^
  softmmu/physmem.c:608:23: note: 'notifier' was declared here
    608 |     TCGIOMMUNotifier *notifier;
        |                       ^~~~~~~~

Initialize 'notifier' to silence the warning.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210117170411.4106949-1-f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/ide/atapi.c')
0 files changed, 0 insertions, 0 deletions