Fix some errors/warnings detected by nuttx/tools/testbuild.sh

This commit is contained in:
Gregory Nutt 2015-11-29 14:41:34 -06:00
parent 997ba578e4
commit ee1b1da4be
2 changed files with 4 additions and 2 deletions

View File

@ -169,6 +169,7 @@ static void configdata_showmemusage(struct mallinfo *mmbefore,
* Name: configdata_loopmemusage * Name: configdata_loopmemusage
****************************************************************************/ ****************************************************************************/
#ifndef CONFIG_EXAMPLES_CONFIGDATA_SILENT
static void configdata_loopmemusage(void) static void configdata_loopmemusage(void)
{ {
/* Get the current memory usage */ /* Get the current memory usage */
@ -192,6 +193,7 @@ static void configdata_loopmemusage(void)
memcpy(&g_mmprevious, &g_mmafter, sizeof(struct mallinfo)); memcpy(&g_mmprevious, &g_mmafter, sizeof(struct mallinfo));
#endif #endif
} }
#endif
/**************************************************************************** /****************************************************************************
* Name: configdata_endmemusage * Name: configdata_endmemusage
@ -565,7 +567,7 @@ static int configdata_getnextdeleted(void)
* Name: configdata_cleardeleted * Name: configdata_cleardeleted
****************************************************************************/ ****************************************************************************/
static int configdata_cleardeleted(void) static void configdata_cleardeleted(void)
{ {
int nextdeleted; int nextdeleted;
int x; int x;

View File

@ -660,7 +660,7 @@ static int nxffs_delfiles(void)
{ {
/* Test for wrap-around */ /* Test for wrap-around */
if (j >= CONFIG_EXAMPLES_FSTEST_MAXOPEN) if (j >= CONFIG_EXAMPLES_NXFFS_MAXOPEN)
{ {
j = 0; j = 0;
} }