From cc694e98627e2eb3f264cdea0780ca381f89e82b Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 10 Sep 2019 08:20:53 -0600 Subject: [PATCH] Fix some new warnings found in build testing. --- boards/arm/lpc17xx_40xx/lx_cpu/src/lpc17_40_bringup.c | 1 + drivers/usbdev/cdcecm.c | 4 ---- fs/partition/fs_ptable.c | 2 ++ 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/boards/arm/lpc17xx_40xx/lx_cpu/src/lpc17_40_bringup.c b/boards/arm/lpc17xx_40xx/lx_cpu/src/lpc17_40_bringup.c index 578b5401352..7fa7b7590f7 100644 --- a/boards/arm/lpc17xx_40xx/lx_cpu/src/lpc17_40_bringup.c +++ b/boards/arm/lpc17xx_40xx/lx_cpu/src/lpc17_40_bringup.c @@ -358,6 +358,7 @@ static int nsh_usbhostinitialize(void) return pid < 0 ? -ENOEXEC : OK; } + UNUSED(ret); return -ENODEV; } #else diff --git a/drivers/usbdev/cdcecm.c b/drivers/usbdev/cdcecm.c index 7060dc976f4..d769f5288fa 100644 --- a/drivers/usbdev/cdcecm.c +++ b/drivers/usbdev/cdcecm.c @@ -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) diff --git a/fs/partition/fs_ptable.c b/fs/partition/fs_ptable.c index 366d9522bf1..583deeab4e6 100644 --- a/fs/partition/fs_ptable.c +++ b/fs/partition/fs_ptable.c @@ -37,6 +37,8 @@ * Included Files ****************************************************************************/ +#include + #include #include "partition.h"