9
0
Fork 0

Eliminate some Z16F compilation warnings.

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@575 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2008-01-28 15:45:39 +00:00
parent 10c3568357
commit 878c47491b
6 changed files with 41 additions and 39 deletions

View File

@ -1,7 +1,7 @@
/***********************************************************************
* cond.c
*
* Copyright (C) 2007 Gregory Nutt. All rights reserved.
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* 3. Neither the name Gregory Nutt nor the names of its contributors may be
* 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@ -183,6 +183,7 @@ static void *thread_signaler(void *parameter)
printf("thread_signaler: Terminating\n");
pthread_exit(NULL);
return NULL; /* Non-reachable -- needed for some compilers */
}
void cond_test(void)

View File

@ -1,7 +1,7 @@
/************************************************************
/****************************************************************************
* main.c
*
* Copyright (C) 2007 Gregory Nutt. All rights reserved.
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* 3. Neither the name Gregory Nutt nor the names of its contributors may be
* 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@ -31,15 +31,15 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************/
****************************************************************************/
/************************************************************
/****************************************************************************
* Compilation Switches
************************************************************/
****************************************************************************/
/************************************************************
/****************************************************************************
* Included Files
************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include <stdio.h>
@ -50,9 +50,9 @@
#include <nuttx/init.h>
#include "ostest.h"
/************************************************************
/****************************************************************************
* Definitions
************************************************************/
****************************************************************************/
#define PRIORITY 100
#define NARGS 4
@ -64,9 +64,9 @@
# define STACKSIZE 8192
#endif
/************************************************************
/****************************************************************************
* Private Data
************************************************************/
****************************************************************************/
static const char arg1[] = "Arg1";
static const char arg2[] = "Arg2";
@ -110,13 +110,13 @@ const char g_putenv_value[] = "Variable1=BadValue3";
#endif
/************************************************************
/****************************************************************************
* Private Functions
************************************************************/
****************************************************************************/
/************************************************************
/****************************************************************************
* Name: show_memory_usage
************************************************************/
****************************************************************************/
#ifndef CONFIG_DISABLE_SIGNALS
static void show_memory_usage(struct mallinfo *mmbefore,
@ -134,9 +134,9 @@ static void show_memory_usage(struct mallinfo *mmbefore,
# define show_memory_usage(mm1, mm2)
#endif
/************************************************************
/****************************************************************************
* Name: check_test_memory_usage
************************************************************/
****************************************************************************/
#ifndef CONFIG_DISABLE_SIGNALS
static void check_test_memory_usage(void)
@ -170,9 +170,9 @@ static void check_test_memory_usage(void)
# define check_test_memory_usage()
#endif
/************************************************************
/****************************************************************************
* Name: show_environment
************************************************************/
****************************************************************************/
#ifndef CONFIG_DISABLE_ENVIRON
static void show_variable(const char *var_name, const char *exptd_value, boolean var_valid)
@ -219,9 +219,9 @@ static void show_environment(boolean var1_valid, boolean var2_valid, boolean var
# define show_environment()
#endif
/************************************************************
/****************************************************************************
* Name: user_main
************************************************************/
****************************************************************************/
static int user_main(int argc, char *argv[])
{
@ -399,9 +399,9 @@ static int user_main(int argc, char *argv[])
return 0;
}
/************************************************************
/****************************************************************************
* Name: stdio_test
************************************************************/
****************************************************************************/
static void stdio_test(void)
{
@ -420,22 +420,22 @@ static void stdio_test(void)
#endif
}
/************************************************************
/****************************************************************************
* Public Functions
************************************************************/
****************************************************************************/
/************************************************************
/****************************************************************************
* user_initialize
************************************************************/
****************************************************************************/
void user_initialize(void)
{
/* stub */
}
/************************************************************
/****************************************************************************
* user_start
************************************************************/
****************************************************************************/
int user_start(int argc, char *argv[])
{

View File

@ -1,7 +1,7 @@
/***********************************************************************
* mutex.c
*
* Copyright (C) 2007 Gregory Nutt. All rights reserved.
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* 3. Neither the name Gregory Nutt nor the names of its contributors may be
* 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@ -86,6 +86,7 @@ static void *thread_func(void *parameter)
}
}
pthread_exit(NULL);
return NULL; /* Non-reachable -- needed for some compilers */
}
void mutex_test(void)

View File

@ -106,7 +106,7 @@ EXTERN int rand(void);
#ifndef CONFIG_DISABLE_ENIVRON
EXTERN FAR char **get_environ_ptr( void );
EXTERN FAR char *getenv(FAR const char *name);
EXTERN int putenv(FAR char *string);
EXTERN int putenv(FAR const char *string);
EXTERN int clearenv(void);
EXTERN int setenv(const char *name, const char *value, int overwrite);
EXTERN int unsetenv(const char *name);

View File

@ -135,7 +135,7 @@ FAR struct file_struct *lib_fdopen(int fd, const char *mode,
FAR struct inode *inode = flist->fl_files[fd].f_inode;
FILE *stream;
int oflags = lib_mode2oflags(mode);
int err;
int err = OK;
int i;
if (fd < 0 || !flist || !slist)

View File

@ -1,7 +1,7 @@
/****************************************************************************
* env_putenv.c
*
* Copyright (C) 2007 Gregory Nutt. All rights reserved.
* Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* 3. Neither the name Gregory Nutt nor the names of its contributors may be
* 3. Neither the name Gregory NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@ -75,7 +75,7 @@
*
****************************************************************************/
int putenv(char *string)
int putenv(FAR const char *string)
{
char *pname;
char *pequal;