Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling error when using gcc 9.4.0 #500

Closed
woshiyunsk opened this issue Jun 26, 2023 · 2 comments
Closed

compiling error when using gcc 9.4.0 #500

woshiyunsk opened this issue Jun 26, 2023 · 2 comments

Comments

@woshiyunsk
Copy link

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
Copy link
Collaborator

This is a duplicate to #485 and was fixed by #499 .
Please use latest upstream version or cherry pick the fix for your build.

@lvklevankhanh
Copy link
Contributor

No response from reporter -> closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants