mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
at86rf2xx: fix warnings when building with -Wextra -pedantic
This commit is contained in:
parent
ed67143a2a
commit
c7d73e24c1
@ -154,6 +154,7 @@ uint8_t at86rf2xx_get_page(at86rf2xx_t *dev)
|
||||
#ifdef MODULE_AT86RF212B
|
||||
return dev->page;
|
||||
#else
|
||||
(void) dev;
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
@ -167,6 +168,9 @@ void at86rf2xx_set_page(at86rf2xx_t *dev, uint8_t page)
|
||||
dev->page = page;
|
||||
|
||||
at86rf2xx_configure_phy(dev);
|
||||
#else
|
||||
(void) dev;
|
||||
(void) page;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@ -30,6 +30,7 @@
|
||||
#define AT86RF2XX_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "board.h"
|
||||
#include "periph/spi.h"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user