Skip to content

Commit

Permalink
pkg/driver_atwinc15x0: don't be pedantic
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Jul 31, 2020
1 parent aa0e5e7 commit 4922838
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drivers/atwinc15x0/atwinc15x0_bsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
8 changes: 4 additions & 4 deletions drivers/atwinc15x0/atwinc15x0_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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;
Expand Down Expand Up @@ -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) { }
Expand Down
2 changes: 2 additions & 0 deletions pkg/driver_atwinc15x0/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4922838

Please sign in to comment.