[00/14] misc set of fixes for warnings under GCC 9
mbox series

Message ID 20190329111104.17223-1-berrange@redhat.com
Headers show
Series
  • misc set of fixes for warnings under GCC 9
Related show

Message

Daniel P. Berrangé March 29, 2019, 11:10 a.m. UTC
This series addresses all the warnings I see when building on Fedora 30
x86_64 with GCC 9 (gcc-9.0.1-0.10.fc30.x86_64).

Ideally QEMU 4.0.0 would be warning-free with GCC 9, but depends whether
maintainers like my approaches to fixing each set of warnings here ...

Daniel P. Berrangé (11):
  linux-user: avoid string truncation warnings in uname field copying
  linux-user: avoid string truncation warnings in elf field copying
  sockets: avoid string truncation warnings when copying UNIX path
  hw/usb: avoid format truncation warning when formatting port name
  qxl: avoid unaligned pointer reads/writes
  usb-mtp: fix string length for filename when writing metadata
  usb-mtp: avoid warning about unaligned access to filename
  hw/vfio/ccw: avoid taking address members in packed structs
  hw/s390/css: avoid taking address members in packed structs
  hw/s390x/ipl: avoid taking address of fields in packed struct
  hw/s390x/3270-ccw: avoid taking address of fields in packed struct

Max Filippov (3):
  target/xtensa: fix break_dependency for repeated resources
  target/xtensa: don't announce exit simcall
  tests/tcg/xtensa: clean up test set

Comments

Peter Maydell March 29, 2019, 11:50 a.m. UTC | #1
On Fri, 29 Mar 2019 at 11:13, Daniel P. Berrangé <berrange@redhat.com> wrote:
>
> This series addresses all the warnings I see when building on Fedora 30
> x86_64 with GCC 9 (gcc-9.0.1-0.10.fc30.x86_64).
>
> Ideally QEMU 4.0.0 would be warning-free with GCC 9, but depends whether
> maintainers like my approaches to fixing each set of warnings here ...
>
> Daniel P. Berrangé (11):
>   linux-user: avoid string truncation warnings in uname field copying
>   linux-user: avoid string truncation warnings in elf field copying
>   sockets: avoid string truncation warnings when copying UNIX path
>   hw/usb: avoid format truncation warning when formatting port name
>   qxl: avoid unaligned pointer reads/writes
>   usb-mtp: fix string length for filename when writing metadata
>   usb-mtp: avoid warning about unaligned access to filename
>   hw/vfio/ccw: avoid taking address members in packed structs
>   hw/s390/css: avoid taking address members in packed structs
>   hw/s390x/ipl: avoid taking address of fields in packed struct
>   hw/s390x/3270-ccw: avoid taking address of fields in packed struct
>
> Max Filippov (3):
>   target/xtensa: fix break_dependency for repeated resources
>   target/xtensa: don't announce exit simcall
>   tests/tcg/xtensa: clean up test set

I'm guessing these last 3 are the results of accidentally
mis-driving git ?

thanks
-- PMM
Daniel P. Berrangé March 29, 2019, 11:56 a.m. UTC | #2
On Fri, Mar 29, 2019 at 11:50:48AM +0000, Peter Maydell wrote:
> On Fri, 29 Mar 2019 at 11:13, Daniel P. Berrangé <berrange@redhat.com> wrote:
> >
> > This series addresses all the warnings I see when building on Fedora 30
> > x86_64 with GCC 9 (gcc-9.0.1-0.10.fc30.x86_64).
> >
> > Ideally QEMU 4.0.0 would be warning-free with GCC 9, but depends whether
> > maintainers like my approaches to fixing each set of warnings here ...
> >
> > Daniel P. Berrangé (11):
> >   linux-user: avoid string truncation warnings in uname field copying
> >   linux-user: avoid string truncation warnings in elf field copying
> >   sockets: avoid string truncation warnings when copying UNIX path
> >   hw/usb: avoid format truncation warning when formatting port name
> >   qxl: avoid unaligned pointer reads/writes
> >   usb-mtp: fix string length for filename when writing metadata
> >   usb-mtp: avoid warning about unaligned access to filename
> >   hw/vfio/ccw: avoid taking address members in packed structs
> >   hw/s390/css: avoid taking address members in packed structs
> >   hw/s390x/ipl: avoid taking address of fields in packed struct
> >   hw/s390x/3270-ccw: avoid taking address of fields in packed struct
> >
> > Max Filippov (3):
> >   target/xtensa: fix break_dependency for repeated resources
> >   target/xtensa: don't announce exit simcall
> >   tests/tcg/xtensa: clean up test set
> 
> I'm guessing these last 3 are the results of accidentally
> mis-driving git ?

Doh, yes, my branch wasn't properly rebased, sorry for that.


Regards,
Daniel