https://bugs.dpdk.org/show_bug.cgi?id=395
Bug ID: 395 Summary: Build of hinic with GCC 10.0.1 fails on aarch64 Product: DPDK Version: 20.02 Hardware: ARM OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: other Assignee: dev@dpdk.org Reporter: luca.bocca...@gmail.com Target Milestone: --- https://build.opensuse.org/build/home:bluca:dpdk/Fedora_Rawhide/aarch64/dpdk/_log [ 399s] /home/abuild/rpmbuild/BUILD/dpdk-1581015204.2636c2a23/drivers/net/hinic/base/hinic_pmd_hwdev.c: In function 'print_cable_info': [ 399s] /home/abuild/rpmbuild/BUILD/dpdk-1581015204.2636c2a23/drivers/net/hinic/base/hinic_pmd_hwdev.c:1398:3: error: 'snprintf' argument 4 may overlap destination object 'tmp_str' [-Werror=restrict] [ 399s] 1398 | snprintf(tmp_str + strlen(tmp_str), (sizeof(tmp_str) - 1), [ 399s] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 399s] 1399 | "%s, Temperature: %u", tmp_str, [ 399s] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 399s] 1400 | info->cable_temp); [ 399s] | ~~~~~~~~~~~~~~~~~ [ 399s] /home/abuild/rpmbuild/BUILD/dpdk-1581015204.2636c2a23/drivers/net/hinic/base/hinic_pmd_hwdev.c:1363:7: note: destination object referenced by 'restrict'-qualified argument 1 was declared here [ 399s] 1363 | char tmp_str[512] = {0}; [ 399s] | ^~~~~~~ -- You are receiving this mail because: You are the assignee for the bug.