Go to file
Alberto Escolar Piedras 2947109e8d nrfx ppib: Strict C compliance warning waive
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>
2024-04-24 12:09:29 +02:00
drivers/nrf_802154 nrf_802154: rev cc772ff0a57506bd728ff3d08d03ee4ef8ffbb9d 2024-02-26 09:47:57 +01:00
nrfx nrfx ppib: Strict C compliance warning waive 2024-04-24 12:09:29 +02:00
utils utils: add script to invoke autogeneration of files 2024-02-02 14:34:37 +01:00
zephyr zephyr: Set hal_nordic as the name of this module 2021-01-19 10:34:42 +01:00