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

net: lib: coap: Initialize response_truncated #79186

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

trantanen
Copy link

Fix the following compilation warning given when using newlibc:
warning: 'response_truncated' may be used uninitialized [-Wmaybe-uninitialized]

Issue is not seen with picolibc.
The variable was introduced as part of PR #76257

Fix the following compilation warning given when using newlibc:
warning: 'response_truncated' may be used
uninitialized [-Wmaybe-uninitialized]

Issue is not seen with picolibc.

The variable was introduced as part of PR zephyrproject-rtos#76257

Signed-off-by: Tommi Rantanen <[email protected]>
@zephyrbot zephyrbot added area: Networking size: XS A PR changing only a single line of code labels Sep 30, 2024
Copy link

Hello @trantanen, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

@trantanen
Copy link
Author

FYI: @mrodgers-witekio @SeppoTakalo

@pdgendt pdgendt added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label Sep 30, 2024
bjarki-andreasen pushed a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 30, 2024
Fix the following compilation warning given when using newlibc:
warning: 'response_truncated' may be used
uninitialized [-Wmaybe-uninitialized]

Issue is not seen with picolibc.

The variable was introduced as part of PR #76257

Upstream PR: zephyrproject-rtos/zephyr#79186

Signed-off-by: Tommi Rantanen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking size: XS A PR changing only a single line of code Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants