mcci-catena/arduino-lmic

In function 'LMICeu868_nextTx': 'feasibleMap' may be used uninitialized

cyberman54 opened this issue · 1 comments

With refactoring code in 3.99.0-2 compiler throws warning:

In function 'LMICeu868_nextTx':
src/lmic/lmic_eu868.c:304:29: warning: 'feasibleMap' may be used uninitialized in this function
feasibleMap |= chnlBit;

And, indeed, feasibleMap seems to be uninitialized in all LMIC<$country>_nextTx() functions?

Thanks!

Guess I need to turn up warnings in my default setup. Serves me right for not enabling this while I was tweaking the BSP package.

feasibleMap only appears in LMICeu868_nextTx() and LMICas923_nextTx(). I'll post a patch.