Browse Source

xtimer: fix cppcheck warnings

master
Martine Lenders 6 years ago committed by Oleg Hahm
parent
commit
b2bc244ce9
  1. 2
      sys/include/xtimer/implementation.h

2
sys/include/xtimer/implementation.h

@ -51,6 +51,8 @@ static inline uint32_t _xtimer_lltimer_now(void)
*/
static inline uint32_t _xtimer_lltimer_mask(uint32_t val)
{
/* cppcheck-suppress shiftTooManyBits
* (reason: cppcheck bug. `XTIMER_MASK` is zero when `XTIMER_WIDTH` is 32) */
return val & ~XTIMER_MASK;
}

Loading…
Cancel
Save