Skip to content

Prevent maybe-initialized error #1

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

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

Conversation

jconstam
Copy link

  • By default, Mongoose OS uses -Werror
  • The ret variable in mbedtls_hmac_drbg_update_ret is declared without assignment.
  • GCC will treat this as a compiler error unless the maybe-initialized error is completely disabled

* By default, Mongoose OS uses -Werror
* The ret variable in mbedtls_hmac_drbg_update_ret is declared without assignment.
* GCC will treat this as a compiler error unless the maybe-initialized error is completely disabled
@rojer
Copy link
Contributor

rojer commented Aug 25, 2022

sorry, this fell through the cracks.
but wait, we compile this code for all platforms, how come this doesn't break build for any of them?
which platform is affected?

@jconstam
Copy link
Author

I'm using ESP32. I was surprised too. 😅

@rojer
Copy link
Contributor

rojer commented Sep 1, 2022

i want to repro this first myself. can you create a minimal app that fails to build because of this?

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

Successfully merging this pull request may close these issues.

2 participants