memfault / mtb-example-memfault Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
GCC 11 emits -Wstringop-overread warning for memfault_http_task.c:
Compiling app file memfault_http_task.c
source/memfault_http_task.c: In function 'prv_auto_connect_to_ap':
source/memfault_http_task.c:127:14: warning: 'strnlen' specified bound 64 exceeds source size 9 [-Wstringop-overread]
127 | } else if (strnlen(WIFI_SSID, MEMFAULT_WIFI_CONFIG_MAX_SIZE) > 0 &&
Steps to reproduce:
The file "memfault_example_app.h" contains macros WIFI_SSID, WIFI_AUTH_TYPE, WIFI_PASSWORD, and MEMFAULT_PROJECT_KEY that are commented out which results in warnings during the build. There are other warnings as seen in the image attached.
Can you please provide default values to these macros and resolve these warnings? The ReadMe provides instructions to the users to fill it in for proper working of the code example, so we don't need to issue any warnings.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.