2947109e8d
Enumerate values need to fit in the range of int if we are to be strictly standad compliant. But for this emum in question, its highest value is generated from a bitmask of the 31st bit, which, as a possitive number is out the int range. This can cause warnings for compilers which are run in a pedantic enough mode. GCC is one of this, producing a warning like: "warning: ISO C restricts enumerator values to range of ‘int’" when run with "-Wpedantic" Let's disable these warnings for this enum definition when building for GCC. Apart from this warning, GCC seems to properly handle this case. Note that as this definition is in a header, the issue is triggered when users try to compile their code with the corresponding warnings enabled. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no> |
||
---|---|---|
drivers/nrf_802154 | ||
nrfx | ||
utils | ||
zephyr |