1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00
Kaspar Schleiser 94e314c914 pkg/nimble: fix if(IS_ACTIVE(..) && CONSTANT) with llvm
Fixes

```
/home/kaspar/src/riot.rs/pkg/nimble/autoadv/nimble_autoadv.c:163:46: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand]
    if (IS_ACTIVE(NIMBLE_AUTOADV_FLAG_FIELD) && BLUETIL_AD_FLAGS_DEFAULT) {
                                             ^  ~~~~~~~~~~~~~~~~~~~~~~~~
/home/kaspar/src/riot.rs/pkg/nimble/autoadv/nimble_autoadv.c:163:46: note: use '&' for a bitwise operation
    if (IS_ACTIVE(NIMBLE_AUTOADV_FLAG_FIELD) && BLUETIL_AD_FLAGS_DEFAULT) {
                                             ^~
                                             &
/home/kaspar/src/riot.rs/pkg/nimble/autoadv/nimble_autoadv.c:163:46: note: remove constant to silence this warning
    if (IS_ACTIVE(NIMBLE_AUTOADV_FLAG_FIELD) && BLUETIL_AD_FLAGS_DEFAULT) {
                                            ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
2021-09-16 14:01:33 +02:00
..
2021-08-25 18:42:40 +02:00
2021-07-09 11:16:41 +02:00
2021-08-13 19:50:38 +02:00
2021-09-08 15:22:40 +02:00
2021-08-13 19:50:38 +02:00
2021-08-13 19:50:38 +02:00
2021-09-09 13:42:41 +02:00
2021-06-15 12:06:10 +02:00
2021-08-13 19:50:38 +02:00
2021-06-15 12:06:10 +02:00