build: fix various compile warnings

mostly comparison signed vs unsigned and possible un-initialized usage
This commit is contained in:
Bas van den Berg
2023-04-17 13:13:02 +02:00
committed by Szymon Janc
parent d8dfb16991
commit 333c575bbf
15 changed files with 28 additions and 27 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ nrf_timer_set_ocmp(struct nrf52_hal_timer *bsptimer, uint32_t expiry)
} else {
rtctimer->INTENCLR = RTC_INTENCLR_TICK_Msk;
if (delta_t < (1UL << 24)) {
if (delta_t < (1L << 24)) {
rtctimer->CC[NRF_RTC_TIMER_CC_INT] = expiry & 0x00ffffff;
} else {
/* CC too far ahead. Just make sure we set compare far ahead */