Fix a few compile errors and warnings found in build testing

This commit is contained in:
Gregory Nutt 2017-08-12 10:27:55 -06:00
parent dacdbb0005
commit 6c4405561a
3 changed files with 5 additions and 1 deletions

View File

@ -1238,7 +1238,7 @@ static void spirit_interrupt_work(FAR void *arg)
DEBUGVERIFY(spirit_management_rxstrobe(spirit)); DEBUGVERIFY(spirit_management_rxstrobe(spirit));
DEBUGVERIFY(spirit_command(spirit, CMD_RX)); DEBUGVERIFY(spirit_command(spirit, CMD_RX));
if (priv->state == DRIVER_STATE_SENDING); if (priv->state == DRIVER_STATE_SENDING)
{ {
priv->state = DRIVER_STATE_IDLE; priv->state = DRIVER_STATE_IDLE;
} }

View File

@ -90,6 +90,8 @@ void devif_forward(FAR struct forward_s *fwd)
fwd->f_dev->d_sndlen = 0; fwd->f_dev->d_sndlen = 0;
fwd->f_dev->d_len = offset; fwd->f_dev->d_len = offset;
UNUSED(ret);
} }
#endif /* CONFIG_NET_IPFORWARD */ #endif /* CONFIG_NET_IPFORWARD */

View File

@ -40,11 +40,13 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <stdint.h> #include <stdint.h>
#include <debug.h>
#include <nuttx/net/netdev.h> #include <nuttx/net/netdev.h>
#include <nuttx/net/net.h> #include <nuttx/net/net.h>
#include "devif/devif.h" #include "devif/devif.h"
#include "sixlowpan/sixlowpan.h"
#include "ipforward/ipforward.h" #include "ipforward/ipforward.h"
#ifdef CONFIG_NET_IPFORWARD #ifdef CONFIG_NET_IPFORWARD