mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
xtimer: fix cppcheck warnings
This commit is contained in:
parent
62ca7f9242
commit
b2bc244ce9
@ -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…
Reference in New Issue
Block a user