Eliminate some warnings

This commit is contained in:
Gregory Nutt
2016-06-13 13:16:03 -06:00
parent eac916c907
commit d5275e48d0
2 changed files with 6 additions and 10 deletions
+4 -8
View File
@@ -42,8 +42,12 @@
/* Output debug info -- even if debug is not selected. */ /* Output debug info -- even if debug is not selected. */
#undef CONFIG_DEBUG_FEATURES #undef CONFIG_DEBUG_FEATURES
#undef CONFIG_DEBUG_ERROR
#undef CONFIG_DEBUG_WARN
#undef CONFIG_DEBUG_INFO #undef CONFIG_DEBUG_INFO
#define CONFIG_DEBUG_FEATURES 1 #define CONFIG_DEBUG_FEATURES 1
#define CONFIG_DEBUG_ERROR 1
#define CONFIG_DEBUG_WARN 1
#define CONFIG_DEBUG_INFO 1 #define CONFIG_DEBUG_INFO 1
#include <stdint.h> #include <stdint.h>
@@ -61,14 +65,6 @@
#ifdef CONFIG_ARCH_STACKDUMP #ifdef CONFIG_ARCH_STACKDUMP
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/****************************************************************************
* Private Data
****************************************************************************/
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions
****************************************************************************/ ****************************************************************************/
+2 -2
View File
@@ -1064,7 +1064,7 @@ int nxffs_open(FAR struct file *filep, FAR const char *relpath,
int nxffs_dup(FAR const struct file *oldp, FAR struct file *newp) int nxffs_dup(FAR const struct file *oldp, FAR struct file *newp)
{ {
#ifdef CONFIG_DEBUG_FEATURES #ifdef CONFIG_DEBUG_ASSERTIONS
FAR struct nxffs_volume_s *volume; FAR struct nxffs_volume_s *volume;
#endif #endif
FAR struct nxffs_ofile_s *ofile; FAR struct nxffs_ofile_s *ofile;
@@ -1073,7 +1073,7 @@ int nxffs_dup(FAR const struct file *oldp, FAR struct file *newp)
/* Sanity checks */ /* Sanity checks */
#ifdef CONFIG_DEBUG_FEATURES #ifdef CONFIG_DEBUG_ASSERTIONS
DEBUGASSERT(oldp->f_priv == NULL && oldp->f_inode != NULL); DEBUGASSERT(oldp->f_priv == NULL && oldp->f_inode != NULL);
/* Get the mountpoint private data from the NuttX inode reference in the /* Get the mountpoint private data from the NuttX inode reference in the