mynewt-core
mynewt-core copied to clipboard
stats: `static STATS_NAME_START()` keeps static qualifier as is when statistics names are disabled
stats: static STATS_NAME_START() keeps static qualifier as is when statistics names are disabled.
There are couple of ways of solving this:
- Remove static qualifier for all stat names
- Add static qualifier to the macro and deal differently with it based on whether names are enabled or not
The above are just suggestions, there might be better ways of solving this.