mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
Eliminate some Z16F compilation warnings.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@575 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* cond.c
|
* 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>
|
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* 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
|
* notice, this list of conditions and the following disclaimer in
|
||||||
* the documentation and/or other materials provided with the
|
* the documentation and/or other materials provided with the
|
||||||
* distribution.
|
* 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
|
* used to endorse or promote products derived from this software
|
||||||
* without specific prior written permission.
|
* without specific prior written permission.
|
||||||
*
|
*
|
||||||
@@ -183,6 +183,7 @@ static void *thread_signaler(void *parameter)
|
|||||||
|
|
||||||
printf("thread_signaler: Terminating\n");
|
printf("thread_signaler: Terminating\n");
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
|
return NULL; /* Non-reachable -- needed for some compilers */
|
||||||
}
|
}
|
||||||
|
|
||||||
void cond_test(void)
|
void cond_test(void)
|
||||||
|
|||||||
+30
-30
@@ -1,7 +1,7 @@
|
|||||||
/************************************************************
|
/****************************************************************************
|
||||||
* main.c
|
* 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>
|
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* 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
|
* notice, this list of conditions and the following disclaimer in
|
||||||
* the documentation and/or other materials provided with the
|
* the documentation and/or other materials provided with the
|
||||||
* distribution.
|
* 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
|
* used to endorse or promote products derived from this software
|
||||||
* without specific prior written permission.
|
* without specific prior written permission.
|
||||||
*
|
*
|
||||||
@@ -31,15 +31,15 @@
|
|||||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/************************************************************
|
/****************************************************************************
|
||||||
* Compilation Switches
|
* Compilation Switches
|
||||||
************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/************************************************************
|
/****************************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -50,9 +50,9 @@
|
|||||||
#include <nuttx/init.h>
|
#include <nuttx/init.h>
|
||||||
#include "ostest.h"
|
#include "ostest.h"
|
||||||
|
|
||||||
/************************************************************
|
/****************************************************************************
|
||||||
* Definitions
|
* Definitions
|
||||||
************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#define PRIORITY 100
|
#define PRIORITY 100
|
||||||
#define NARGS 4
|
#define NARGS 4
|
||||||
@@ -64,9 +64,9 @@
|
|||||||
# define STACKSIZE 8192
|
# define STACKSIZE 8192
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/************************************************************
|
/****************************************************************************
|
||||||
* Private Data
|
* Private Data
|
||||||
************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static const char arg1[] = "Arg1";
|
static const char arg1[] = "Arg1";
|
||||||
static const char arg2[] = "Arg2";
|
static const char arg2[] = "Arg2";
|
||||||
@@ -110,13 +110,13 @@ const char g_putenv_value[] = "Variable1=BadValue3";
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/************************************************************
|
/****************************************************************************
|
||||||
* Name: show_memory_usage
|
* Name: show_memory_usage
|
||||||
************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef CONFIG_DISABLE_SIGNALS
|
#ifndef CONFIG_DISABLE_SIGNALS
|
||||||
static void show_memory_usage(struct mallinfo *mmbefore,
|
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)
|
# define show_memory_usage(mm1, mm2)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/************************************************************
|
/****************************************************************************
|
||||||
* Name: check_test_memory_usage
|
* Name: check_test_memory_usage
|
||||||
************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef CONFIG_DISABLE_SIGNALS
|
#ifndef CONFIG_DISABLE_SIGNALS
|
||||||
static void check_test_memory_usage(void)
|
static void check_test_memory_usage(void)
|
||||||
@@ -170,9 +170,9 @@ static void check_test_memory_usage(void)
|
|||||||
# define check_test_memory_usage()
|
# define check_test_memory_usage()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/************************************************************
|
/****************************************************************************
|
||||||
* Name: show_environment
|
* Name: show_environment
|
||||||
************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef CONFIG_DISABLE_ENVIRON
|
#ifndef CONFIG_DISABLE_ENVIRON
|
||||||
static void show_variable(const char *var_name, const char *exptd_value, boolean var_valid)
|
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()
|
# define show_environment()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/************************************************************
|
/****************************************************************************
|
||||||
* Name: user_main
|
* Name: user_main
|
||||||
************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static int user_main(int argc, char *argv[])
|
static int user_main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
@@ -399,9 +399,9 @@ static int user_main(int argc, char *argv[])
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************************************************
|
/****************************************************************************
|
||||||
* Name: stdio_test
|
* Name: stdio_test
|
||||||
************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static void stdio_test(void)
|
static void stdio_test(void)
|
||||||
{
|
{
|
||||||
@@ -420,22 +420,22 @@ static void stdio_test(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/************************************************************
|
/****************************************************************************
|
||||||
* user_initialize
|
* user_initialize
|
||||||
************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void user_initialize(void)
|
void user_initialize(void)
|
||||||
{
|
{
|
||||||
/* stub */
|
/* stub */
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************************************************
|
/****************************************************************************
|
||||||
* user_start
|
* user_start
|
||||||
************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int user_start(int argc, char *argv[])
|
int user_start(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* mutex.c
|
* 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>
|
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* 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
|
* notice, this list of conditions and the following disclaimer in
|
||||||
* the documentation and/or other materials provided with the
|
* the documentation and/or other materials provided with the
|
||||||
* distribution.
|
* 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
|
* used to endorse or promote products derived from this software
|
||||||
* without specific prior written permission.
|
* without specific prior written permission.
|
||||||
*
|
*
|
||||||
@@ -86,6 +86,7 @@ static void *thread_func(void *parameter)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
|
return NULL; /* Non-reachable -- needed for some compilers */
|
||||||
}
|
}
|
||||||
|
|
||||||
void mutex_test(void)
|
void mutex_test(void)
|
||||||
|
|||||||
+1
-1
@@ -106,7 +106,7 @@ EXTERN int rand(void);
|
|||||||
#ifndef CONFIG_DISABLE_ENIVRON
|
#ifndef CONFIG_DISABLE_ENIVRON
|
||||||
EXTERN FAR char **get_environ_ptr( void );
|
EXTERN FAR char **get_environ_ptr( void );
|
||||||
EXTERN FAR char *getenv(FAR const char *name);
|
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 clearenv(void);
|
||||||
EXTERN int setenv(const char *name, const char *value, int overwrite);
|
EXTERN int setenv(const char *name, const char *value, int overwrite);
|
||||||
EXTERN int unsetenv(const char *name);
|
EXTERN int unsetenv(const char *name);
|
||||||
|
|||||||
+1
-1
@@ -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;
|
FAR struct inode *inode = flist->fl_files[fd].f_inode;
|
||||||
FILE *stream;
|
FILE *stream;
|
||||||
int oflags = lib_mode2oflags(mode);
|
int oflags = lib_mode2oflags(mode);
|
||||||
int err;
|
int err = OK;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (fd < 0 || !flist || !slist)
|
if (fd < 0 || !flist || !slist)
|
||||||
|
|||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* env_putenv.c
|
* 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>
|
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* 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
|
* notice, this list of conditions and the following disclaimer in
|
||||||
* the documentation and/or other materials provided with the
|
* the documentation and/or other materials provided with the
|
||||||
* distribution.
|
* 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
|
* used to endorse or promote products derived from this software
|
||||||
* without specific prior written permission.
|
* without specific prior written permission.
|
||||||
*
|
*
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int putenv(char *string)
|
int putenv(FAR const char *string)
|
||||||
{
|
{
|
||||||
char *pname;
|
char *pname;
|
||||||
char *pequal;
|
char *pequal;
|
||||||
|
|||||||
Reference in New Issue
Block a user