diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 13:15:09 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 13:15:09 -0600 |
commit | 3b3fcf2bfa6015d890d42b5a528f7fe7476632f7 (patch) | |
tree | cccc4fca1d7d91915ad679577b484c5c6a110e6d /nuttx/configs/mikroe-stm32f4/src/up_nsh.c | |
parent | c9b18b049b09580260188349bb32e91b59f74965 (diff) | |
download | px4-nuttx-3b3fcf2bfa6015d890d42b5a528f7fe7476632f7.tar.gz px4-nuttx-3b3fcf2bfa6015d890d42b5a528f7fe7476632f7.tar.bz2 px4-nuttx-3b3fcf2bfa6015d890d42b5a528f7fe7476632f7.zip |
More fixes to problems noted by cppcheck. Some are kind of risky; some are real bugs.
Diffstat (limited to 'nuttx/configs/mikroe-stm32f4/src/up_nsh.c')
-rw-r--r-- | nuttx/configs/mikroe-stm32f4/src/up_nsh.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/configs/mikroe-stm32f4/src/up_nsh.c b/nuttx/configs/mikroe-stm32f4/src/up_nsh.c index b68101c0a..0963ccf69 100644 --- a/nuttx/configs/mikroe-stm32f4/src/up_nsh.c +++ b/nuttx/configs/mikroe-stm32f4/src/up_nsh.c @@ -169,7 +169,11 @@ int nsh_archinitialize(void) FAR struct spi_dev_s *spi; FAR struct mtd_dev_s *mtd; #endif +#if defined(NSH_HAVEMMCSD) || defined(HAVE_USBHOST) || \ + defined(HAVE_USBMONITOR) || defined(CONFIG_LCD_MIO283QT2) || \ + defined(CONFIG_LCD_MIO283QT9A) int ret; +#endif /* Configure SPI-based devices */ |