Re: [Qemu-devel] [PATCH v3] hw/usb/hcd-xhci: Fix GCC 9 build warning

2019-05-03 Thread Alistair Francis
On Fri, May 3, 2019 at 2:24 AM Daniel P. Berrangé wrote: > > On Fri, May 03, 2019 at 12:42:04AM +, Alistair Francis wrote: > > Fix this build warning with GCC 9 on Fedora 30: > > hw/usb/hcd-xhci.c:3339:66: error: ‘%d’ directive output may be truncated > > writing between 1 and 10 bytes into

Re: [Qemu-devel] [PATCH v3] hw/usb/hcd-xhci: Fix GCC 9 build warning

2019-05-03 Thread Daniel P . Berrangé
On Fri, May 03, 2019 at 12:42:04AM +, Alistair Francis wrote: > Fix this build warning with GCC 9 on Fedora 30: > hw/usb/hcd-xhci.c:3339:66: error: ‘%d’ directive output may be truncated > writing between 1 and 10 bytes into a region of size 5 > [-Werror=format-truncation=] > 3339 |

Re: [Qemu-devel] [PATCH v3] hw/usb/hcd-xhci: Fix GCC 9 build warning

2019-05-03 Thread Laurent Vivier
On 03/05/2019 02:42, Alistair Francis wrote: > Fix this build warning with GCC 9 on Fedora 30: > hw/usb/hcd-xhci.c:3339:66: error: ‘%d’ directive output may be truncated > writing between 1 and 10 bytes into a region of size 5 > [-Werror=format-truncation=] > 3339 |

[Qemu-devel] [PATCH v3] hw/usb/hcd-xhci: Fix GCC 9 build warning

2019-05-02 Thread Alistair Francis
Fix this build warning with GCC 9 on Fedora 30: hw/usb/hcd-xhci.c:3339:66: error: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 5 [-Werror=format-truncation=] 3339 | snprintf(port->name, sizeof(port->name), "usb2 port #%d", i+1);