compiling error when using gcc 9.4.0
Closed this issue · 2 comments
woshiyunsk commented
version: 2.18.9
gcc version: 9.4.0
the compiling error information is below:
In function 'strncpy',
inlined from 'set_ecuid' at /home/yunshuangkun/workspace/dlt-daemon-2.18.9/src/console/dlt-control-common.c:126:17:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: '__builtin_strncpy' specified bound 10 equals destination size [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
michael-methner commented
lvklevankhanh commented
No response from reporter -> closing