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"