On 05/06/2018 05:56 AM, Howard Spoelstra wrote:
Hi all,

I get these errors compiling qemu-system-ppc on Fedora 28, gcc 8.0.1:

/home/hsp/src/qemu-master/hw/ppc/e500.c: In function ‘ppce500_load_device_tree’:
/home/hsp/src/qemu-master/hw/ppc/e500.c:442:37: error: ‘/pic@’
directive output may be truncated writing 5 bytes into a region of
size between 1 and 128 [-Werror=format-truncation=]
      snprintf(mpic, sizeof(mpic), "%s/pic@%llx", soc, 
MPC8544_MPIC_REGS_OFFSET);
                                      ^~~~~

Looks like this fixes it:
https://lists.gnu.org/archive/html/qemu-devel/2018-05/msg01359.html

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Reply via email to