permissions: 0.801 performance: 0.698 debug: 0.698 device: 0.603 semantic: 0.601 PID: 0.587 other: 0.568 network: 0.557 graphic: 0.555 files: 0.545 vnc: 0.528 socket: 0.528 boot: 0.514 KVM: 0.464 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é