1
0
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:
Martine Lenders 2017-03-07 16:43:17 +01:00 committed by Oleg Hahm
parent 62ca7f9242
commit b2bc244ce9

View File

@ -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;
}