From 640bd0bfacb9655e7c826fe7fcb2dd27b4e28507 Mon Sep 17 00:00:00 2001 From: Arnaud Charlet Date: Wed, 26 Mar 2008 11:05:34 +0000 Subject: [PATCH] * adaint.c: Fix warnings. From-SVN: r133595 --- gcc/ada/ChangeLog | 4 ++++ gcc/ada/adaint.c | 18 +++++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index f8ef97c5a91..7d0880d5008 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2008-03-26 Arnaud Charlet + + * adaint.c: Fix warnings. + 2008-03-26 Arnaud Charlet * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec. diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 3bc20eb672e..b65a1c7176c 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -643,9 +643,9 @@ __gnat_get_debuggable_suffix_ptr (int *len, const char **value) /* Returns the OS filename and corresponding encoding. */ void -__gnat_os_filename (char *filename, char *w_filename, +__gnat_os_filename (char *filename, char *w_filename ATTRIBUTE_UNUSED, char *os_name, int *o_length, - char *encoding, int *e_length) + char *encoding ATTRIBUTE_UNUSED, int *e_length) { #if defined (_WIN32) && ! defined (__vxworks) && ! defined (CROSS_DIRECTORY_STRUCTURE) WS2SU (os_name, (TCHAR *)w_filename, o_length); @@ -660,7 +660,7 @@ __gnat_os_filename (char *filename, char *w_filename, } FILE * -__gnat_fopen (char *path, char *mode, int encoding) +__gnat_fopen (char *path, char *mode, int encoding ATTRIBUTE_UNUSED) { #if defined (_WIN32) && ! defined (__vxworks) && ! defined (CROSS_DIRECTORY_STRUCTURE) TCHAR wpath[GNAT_MAX_PATH_LEN]; @@ -682,7 +682,7 @@ __gnat_fopen (char *path, char *mode, int encoding) } FILE * -__gnat_freopen (char *path, char *mode, FILE *stream, int encoding) +__gnat_freopen (char *path, char *mode, FILE *stream, int encoding ATTRIBUTE_UNUSED) { #if defined (_WIN32) && ! defined (__vxworks) && ! defined (CROSS_DIRECTORY_STRUCTURE) TCHAR wpath[GNAT_MAX_PATH_LEN]; @@ -3033,6 +3033,10 @@ void GetTimeAsFileTime(LPFILETIME pTime) #if defined (linux) /* pthread affinity support */ +int __gnat_pthread_setaffinity_np (pthread_t th, + size_t cpusetsize, + const void *cpuset); + #ifdef CPU_SETSIZE #include int @@ -3044,9 +3048,9 @@ __gnat_pthread_setaffinity_np (pthread_t th, } #else int -__gnat_pthread_setaffinity_np (pthread_t th, - size_t cpusetsize, - const void *cpuset) +__gnat_pthread_setaffinity_np (pthread_t th ATTRIBUTE_UNUSED, + size_t cpusetsize ATTRIBUTE_UNUSED, + const void *cpuset ATTRIBUTE_UNUSED) { return 0; } -- 2.30.2