permissions: 0.801 register: 0.741 performance: 0.698 debug: 0.698 user-level: 0.683 architecture: 0.665 hypervisor: 0.631 arm: 0.622 virtual: 0.613 device: 0.603 semantic: 0.601 ppc: 0.596 assembly: 0.588 PID: 0.587 risc-v: 0.571 network: 0.557 graphic: 0.555 files: 0.545 vnc: 0.528 socket: 0.528 boot: 0.514 VMM: 0.508 peripherals: 0.505 TCG: 0.494 kernel: 0.483 KVM: 0.464 mistranslation: 0.449 x86: 0.262 i386: 0.262 gcc 8.2 reports stringop-truncation when building qemu QEMU 3.0 block/sheepdog.c: In function 'find_vdi_name': block/sheepdog.c:1239:5: error: 'strncpy' specified bound 256 equals destination size [-Werror=stringop-truncation] strncpy(buf + SD_MAX_VDI_LEN, tag, SD_MAX_VDI_TAG_LEN); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If this is the intended behavior, please suppress the warning. For example: #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstringop-truncation" strncpy(buf + SD_MAX_VDI_LEN, tag, SD_MAX_VDI_TAG_LEN); #pragma GCC diagnostic pop On Tue, Dec 18, 2018 at 3:09 PM Philippe Mathieu-Daudé