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

Build warning when compiling can_dlc_to_bytes against picolibc #62701

Closed
fabiobaltieri opened this issue Sep 15, 2023 · 0 comments · Fixed by #62611
Closed

Build warning when compiling can_dlc_to_bytes against picolibc #62701

fabiobaltieri opened this issue Sep 15, 2023 · 0 comments · Fixed by #62611
Assignees
Labels
area: CAN bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@fabiobaltieri
Copy link
Member

Describe the bug
Picolibc has some extra build time checks that result in a warning with the current can_dlc_to_bytes implementation:

zephyrproject/zephyr/drivers/modem/hl7800.c:1786:74: warning: '%s' directive output may be truncated writing up to 53 bytes into a region of size 21 [-Wformat-truncation=]

To Reproduce
west build -p -b mg100 -T samples/net/telnet/sample.net.telnet

Expected behavior
No warnings.

Impact
Potential build breakage if the build is setup to fail on warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: CAN bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants