You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling the ttn-otaa example with the current git master, and warnings enabled in the IDE, I get a ton of warnings like this one:
/home/matthijs/docs/Electronics/Arduino/Sketches/libraries/mcci-lmic/src/lmic/config.h:22:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
#if CFG_LMIC_REGION_MASK == 0
^~~~~~~~~~~~~~~~~~~~
I think this warning was added in a recent compiler upgrade.
which, when used in an #if, gives non-portable behavior. It is easy to fix, though, I think something like this should be equivalent but without the warning:
Yep, that's a problem; too clever by half. I'll look at this as part of the secure element (#578) refactoring merge that's coming up. I'm still in the six months of horribly busy with the day job phase of my life that corresponded with the pandemic; I'm beginning to see daylight but...
Describe the bug
When compiling the ttn-otaa example with the current git master, and warnings enabled in the IDE, I get a ton of warnings like this one:
I think this warning was added in a recent compiler upgrade.
This comes from this macro definition:
which, when used in an
#if
, gives non-portable behavior. It is easy to fix, though, I think something like this should be equivalent but without the warning:(haven't tested, though).
Similar warnings (with I presume similar fixes) happen for e.g.
CFG_LMIC_EU_like
and friends.Environment
To Reproduce
Compile the ttn-otaa example with warnings enabled in the IDE preferences
The text was updated successfully, but these errors were encountered: