mynewt-core icon indicating copy to clipboard operation
mynewt-core copied to clipboard

stats: `static STATS_NAME_START()` keeps static qualifier as is when statistics names are disabled

Open vrahane opened this issue 6 years ago • 0 comments

stats: static STATS_NAME_START() keeps static qualifier as is when statistics names are disabled.

There are couple of ways of solving this:

  1. Remove static qualifier for all stat names
  2. 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.

vrahane avatar Aug 27 '19 22:08 vrahane