mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-16 14:08:46 +08:00
Fix some errors/warnings detected by nuttx/tools/testbuild.sh
This commit is contained in:
@@ -169,6 +169,7 @@ static void configdata_showmemusage(struct mallinfo *mmbefore,
|
||||
* Name: configdata_loopmemusage
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_EXAMPLES_CONFIGDATA_SILENT
|
||||
static void configdata_loopmemusage(void)
|
||||
{
|
||||
/* Get the current memory usage */
|
||||
@@ -192,6 +193,7 @@ static void configdata_loopmemusage(void)
|
||||
memcpy(&g_mmprevious, &g_mmafter, sizeof(struct mallinfo));
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: configdata_endmemusage
|
||||
@@ -565,7 +567,7 @@ static int configdata_getnextdeleted(void)
|
||||
* Name: configdata_cleardeleted
|
||||
****************************************************************************/
|
||||
|
||||
static int configdata_cleardeleted(void)
|
||||
static void configdata_cleardeleted(void)
|
||||
{
|
||||
int nextdeleted;
|
||||
int x;
|
||||
|
@@ -660,7 +660,7 @@ static int nxffs_delfiles(void)
|
||||
{
|
||||
/* Test for wrap-around */
|
||||
|
||||
if (j >= CONFIG_EXAMPLES_FSTEST_MAXOPEN)
|
||||
if (j >= CONFIG_EXAMPLES_NXFFS_MAXOPEN)
|
||||
{
|
||||
j = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user