mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
Eliminate some warnings
This commit is contained in:
@@ -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
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user