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

avoid GCC -O2 warning stringop-truncation (MEGH-5205) #297

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

nunojpg
Copy link
Contributor

@nunojpg nunojpg commented Jan 16, 2024

This fixes warning/error:

error: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
635 | strncpy(*info, _info, strlen(_info));

@CLAassistant
Copy link

CLAassistant commented Jan 16, 2024

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot changed the title avoid GCC -O2 warning stringop-truncation avoid GCC -O2 warning stringop-truncation (MEGH-5205) Jan 16, 2024
Signed-off-by: Nuno Gonçalves <nunojpg@gmail.com>
blackhack added a commit to blackhack/IDF_ESP32_Blink that referenced this pull request Aug 27, 2024
Implemented setup() and loop(), but maintaining easy access to app_main()
Now using sdkconfig.defaults to set only what is necessary to have a basic Arduino project running

Note: At the time of testing, the Rainmaker component had a build error. This can be easily fixed by manually applying one of the following pull requests until they are merged into the repository:

espressif/esp-rainmaker#313
espressif/esp-rainmaker#297
@espressif-bot espressif-bot merged commit 19c78e0 into espressif:master Sep 9, 2024
1 check passed
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.

3 participants