summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-05-28 23:45:05 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-05-28 23:45:05 +0000
commit2c5f9e8a3d36d8849cb7181cf047f8e0352e7d85 (patch)
treef45b6a9d7f0bc6db7059935b7953f5c04f1b1ef4
parent9ba38ba37ec26f618c58c2b548880919ab1a5121 (diff)
downloadnuttx-2c5f9e8a3d36d8849cb7181cf047f8e0352e7d85.tar.gz
nuttx-2c5f9e8a3d36d8849cb7181cf047f8e0352e7d85.tar.bz2
nuttx-2c5f9e8a3d36d8849cb7181cf047f8e0352e7d85.zip
warning removal
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1834 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/drivers/bch/bchdev_driver.c3
-rw-r--r--nuttx/drivers/mmcsd/mmcsd_spi.c2
-rw-r--r--nuttx/examples/nsh/nsh_lm3s.c3
-rw-r--r--nuttx/examples/nsh/nsh_lpc214x.c3
-rw-r--r--nuttx/examples/nsh/nsh_serial.c1
5 files changed, 7 insertions, 5 deletions
diff --git a/nuttx/drivers/bch/bchdev_driver.c b/nuttx/drivers/bch/bchdev_driver.c
index 8e36bcb82..cf5ab4025 100644
--- a/nuttx/drivers/bch/bchdev_driver.c
+++ b/nuttx/drivers/bch/bchdev_driver.c
@@ -106,7 +106,6 @@ static int bch_open(FAR struct file *filp)
{
FAR struct inode *inode = filp->f_inode;
FAR struct bchlib_s *bch;
- int ret;
DEBUGASSERT(inode && inode->i_private);
bch = (FAR struct bchlib_s *)inode->i_private;
@@ -124,7 +123,7 @@ static int bch_open(FAR struct file *filp)
}
bchlib_semgive(bch);
- return ret;
+ return OK;
}
/****************************************************************************
diff --git a/nuttx/drivers/mmcsd/mmcsd_spi.c b/nuttx/drivers/mmcsd/mmcsd_spi.c
index 06b660a2f..dafcc4fc2 100644
--- a/nuttx/drivers/mmcsd/mmcsd_spi.c
+++ b/nuttx/drivers/mmcsd/mmcsd_spi.c
@@ -375,7 +375,7 @@ static inline void mmcsd_synchronize(FAR struct mmcsd_slot_s *slot)
SPI_SELECT(spi, SPIDEV_MMCSD, TRUE);
}
#else
-# define mmcsd_synchronize(slot) /* No synchronization needed */s
+# define mmcsd_synchronize(slot) /* No synchronization needed */
#endif
/****************************************************************************
diff --git a/nuttx/examples/nsh/nsh_lm3s.c b/nuttx/examples/nsh/nsh_lm3s.c
index 75576bbbe..791bf9d71 100644
--- a/nuttx/examples/nsh/nsh_lm3s.c
+++ b/nuttx/examples/nsh/nsh_lm3s.c
@@ -38,8 +38,9 @@
****************************************************************************/
#include <nuttx/config.h>
-
#include <sys/types.h>
+
+#include <stdio.h>
#include <debug.h>
#include <errno.h>
diff --git a/nuttx/examples/nsh/nsh_lpc214x.c b/nuttx/examples/nsh/nsh_lpc214x.c
index 487d3e03f..937db8a61 100644
--- a/nuttx/examples/nsh/nsh_lpc214x.c
+++ b/nuttx/examples/nsh/nsh_lpc214x.c
@@ -38,8 +38,9 @@
****************************************************************************/
#include <nuttx/config.h>
-
#include <sys/types.h>
+
+#include <stdio.h>
#include <debug.h>
#include <errno.h>
diff --git a/nuttx/examples/nsh/nsh_serial.c b/nuttx/examples/nsh/nsh_serial.c
index 90107bb67..fe5fac93b 100644
--- a/nuttx/examples/nsh/nsh_serial.c
+++ b/nuttx/examples/nsh/nsh_serial.c
@@ -363,4 +363,5 @@ int nsh_consolemain(int argc, char *argv[])
fflush(pstate->ss_stream);
}
}
+ return OK;
}