cc -c imx_sdp.c -o imx_sdp.o -pipe -ggdb -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DSYSCONFDIR='"/tmp/u-boot-imx-serial-loader-2017.01/etc"'
imx_sdp.c:144:22: warning: the value of the size argument in 'strncat' is too large, might lead to a
buffer overflow [-Wstrncat-size]
strncat(conf, &sep, sizeof(conf));
^~~~~~~~~~~~
imx_sdp.c:144:22: note: change the argument to be the free space in the destination buffer minus the
terminating null byte
strncat(conf, &sep, sizeof(conf));
^~~~~~~~~~~~
sizeof(conf) - strlen(conf) - 1
imx_sdp.c:145:27: warning: the value of the size argument in 'strncat' is too large, might lead to a
buffer overflow [-Wstrncat-size]
strncat(conf, conf_file, sizeof(conf));
^~~~~~~~~~~~
imx_sdp.c:145:27: note: change the argument to be the free space in the destination buffer minus the
terminating null byte
strncat(conf, conf_file, sizeof(conf));
^~~~~~~~~~~~
sizeof(conf) - strlen(conf) - 1
clang 10.0.1 complains when building imx_sdp.c
Using