qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] hw/char/virtio-serial-bus.c displays warnings when being co


From: Programmingkid
Subject: [Qemu-devel] hw/char/virtio-serial-bus.c displays warnings when being compiled
Date: Thu, 10 Aug 2017 16:52:37 -0400

Host:
Operating system: Mac OS 10.12.5
GCC: Apple LLVM version 8.1.0 (clang-802.0.42)
Command to reproduce: ./configure --target-list=ppc-softmmu,i386-softmmu && 
make -j 4


During compiling I saw these warning messages:


  CC      ppc-softmmu/hw/char/virtio-serial-bus.o
/Users/john/Documents/Development/Projects/Qemu/qemu-git/hw/char/virtio-serial-bus.c:660:24:
 warning: 
      taking address of packed member 'cols' of class or structure
      'virtio_console_config' may result in an unaligned pointer value
      [-Waddress-of-packed-member]
    qemu_put_be16s(f, &config.cols);
                       ^~~~~~~~~~~
/Users/john/Documents/Development/Projects/Qemu/qemu-git/hw/char/virtio-serial-bus.c:661:24:
 warning: 
      taking address of packed member 'rows' of class or structure
      'virtio_console_config' may result in an unaligned pointer value
      [-Waddress-of-packed-member]
    qemu_put_be16s(f, &config.rows);
                       ^~~~~~~~~~~
/Users/john/Documents/Development/Projects/Qemu/qemu-git/hw/char/virtio-serial-bus.c:662:24:
 warning: 
      taking address of packed member 'max_nr_ports' of class or structure
      'virtio_console_config' may result in an unaligned pointer value
      [-Waddress-of-packed-member]
    qemu_put_be32s(f, &config.max_nr_ports);
                       ^~~~~~~~~~~~~~~~~~~




reply via email to

[Prev in Thread] Current Thread [Next in Thread]