Fix some new warnings found in build testing.

This commit is contained in:
Gregory Nutt 2019-09-10 08:20:53 -06:00
parent 97dfff2011
commit cc694e9862
3 changed files with 3 additions and 4 deletions

View File

@ -358,6 +358,7 @@ static int nsh_usbhostinitialize(void)
return pid < 0 ? -ENOEXEC : OK;
}
UNUSED(ret);
return -ENODEV;
}
#else

View File

@ -1065,10 +1065,6 @@ static void cdcecm_ipv6multicast(FAR struct cdcecm_driver_s *priv)
static int cdcecm_ioctl(FAR struct net_driver_s *dev, int cmd,
unsigned long arg)
{
FAR struct cdcecm_driver_s *priv =
(FAR struct cdcecm_driver_s *)dev->d_private;
int ret;
/* Decode and dispatch the driver-specific IOCTL command */
switch (cmd)

View File

@ -37,6 +37,8 @@
* Included Files
****************************************************************************/
#include <string.h>
#include <nuttx/kmalloc.h>
#include "partition.h"