From 492283898e798ea04a1eb939869def92b4778ecc Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 21 Jul 2020 23:16:06 +0200 Subject: [PATCH] pkg/driver_atwinc15x0: don't be pedantic --- drivers/atwinc15x0/atwinc15x0_bsp.c | 2 +- drivers/atwinc15x0/atwinc15x0_netdev.c | 8 ++++---- pkg/driver_atwinc15x0/Makefile | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/atwinc15x0/atwinc15x0_bsp.c b/drivers/atwinc15x0/atwinc15x0_bsp.c index d3d13f1f1c..aac49b00ee 100644 --- a/drivers/atwinc15x0/atwinc15x0_bsp.c +++ b/drivers/atwinc15x0/atwinc15x0_bsp.c @@ -83,7 +83,7 @@ void nm_bsp_register_isr(tpfNmBspIsr pfIsr) { assert(atwinc15x0); - DEBUG("%s %p\n", __func__, pfIsr); + DEBUG("%s %p\n", __func__, (void *)(uintptr_t)pfIsr); atwinc15x0->bsp_isr = pfIsr; } diff --git a/drivers/atwinc15x0/atwinc15x0_netdev.c b/drivers/atwinc15x0/atwinc15x0_netdev.c index a541575d59..0cca439527 100644 --- a/drivers/atwinc15x0/atwinc15x0_netdev.c +++ b/drivers/atwinc15x0/atwinc15x0_netdev.c @@ -345,7 +345,7 @@ static int _atwinc15x0_get(netdev_t *netdev, netopt_t opt, void *val, assert(dev == atwinc15x0); DEBUG("%s dev=%p opt=%u val=%p max_len=%u\n", __func__, - netdev, opt, val, max_len); + (void *)netdev, opt, val, max_len); switch (opt) { case NETOPT_IS_WIRED: @@ -395,7 +395,7 @@ static int _atwinc15x0_set(netdev_t *netdev, netopt_t opt, const void *val, assert(val); DEBUG("%s dev=%p opt=%u val=%p max_len=%u\n", __func__, - netdev, opt, val, max_len); + (void *)netdev, opt, val, max_len); switch (opt) { case NETOPT_ADDRESS: @@ -415,7 +415,7 @@ static int _atwinc15x0_init(netdev_t *netdev) assert(dev); assert(dev == atwinc15x0); - DEBUG("%s dev=%p\n", __func__, dev); + DEBUG("%s dev=%p\n", __func__, (void *)dev); atwinc15x0->bsp_isr = NULL; atwinc15x0->bsp_irq_enabled = true; @@ -492,7 +492,7 @@ static void _atwinc15x0_isr(netdev_t *netdev) assert(dev); assert(dev == atwinc15x0); - DEBUG("%s dev=%p\n", __func__, dev); + DEBUG("%s dev=%p\n", __func__, (void *)dev); /* handle pending ATWINC15x0 module events */ while (m2m_wifi_handle_events(NULL) != M2M_SUCCESS) { } diff --git a/pkg/driver_atwinc15x0/Makefile b/pkg/driver_atwinc15x0/Makefile index ab84af721d..749c398075 100644 --- a/pkg/driver_atwinc15x0/Makefile +++ b/pkg/driver_atwinc15x0/Makefile @@ -14,6 +14,8 @@ CFLAGS += -Wno-incompatible-pointer-types-discards-qualifiers CFLAGS += -DETH_MODE CFLAGS += -I$(PKG_SOURCE_DIR)/src +CFLAGS += -Wno-pedantic + all: "$(MAKE)" -C $(PKG_SOURCE_DIR)/src/driver/source -f $(RIOTBASE)/Makefile.base MODULE=driver_atwinc15x0 "$(MAKE)" -C $(PKG_SOURCE_DIR)/src/common/source -f $(RIOTBASE)/Makefile.base MODULE=driver_atwinc15x0_common