diff options
author | Christopher Faylor <me@cgf.cx> | 2000-02-24 03:53:22 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-02-24 03:53:22 +0000 |
commit | 65b959847034190d9af9bb66dac4ba3fa0aed844 (patch) | |
tree | e39f1d88fbf5fc74572e00326b9d3e4cdeefe7a2 | |
parent | 2528588a759447dfd1e383ace086dc8628eb40db (diff) | |
download | cygnal-65b959847034190d9af9bb66dac4ba3fa0aed844.tar.gz cygnal-65b959847034190d9af9bb66dac4ba3fa0aed844.tar.bz2 cygnal-65b959847034190d9af9bb66dac4ba3fa0aed844.zip |
Fix final round of gcc warnings relating to unused parameters.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/localtime.c | 3 | ||||
-rw-r--r-- | winsup/cygwin/regexp/regerror.c | 3 | ||||
-rw-r--r-- | winsup/cygwin/thread.cc | 12 |
4 files changed, 13 insertions, 9 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index ddca9e0a8..03e7ccccc 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +Wed Feb 23 22:51:27 2000 Christopher Faylor <cgf@cygnus.com> + + Fix final round of gcc warnings relating to unused parameters. + Wed Feb 23 21:59:44 2000 Christopher Faylor <cgf@cygnus.com> * hinfo.cc (hinfo::extend): Clean up debugging output. diff --git a/winsup/cygwin/localtime.c b/winsup/cygwin/localtime.c index a22d654e7..47efb16a1 100644 --- a/winsup/cygwin/localtime.c +++ b/winsup/cygwin/localtime.c @@ -1560,7 +1560,8 @@ tzset P((void)) /*ARGSUSED*/ static void -localsub (const time_t * const timep, const long offset, +localsub (const time_t * const timep, + const long offset __attribute__ ((unused)), struct tm * const tmp) { register struct state * sp; diff --git a/winsup/cygwin/regexp/regerror.c b/winsup/cygwin/regexp/regerror.c index ab6954e08..b07f669bc 100644 --- a/winsup/cygwin/regexp/regerror.c +++ b/winsup/cygwin/regexp/regerror.c @@ -8,8 +8,7 @@ static char *rcsid = "$Id$"; #include <stdio.h> void -regerror(s) -const char *s; +regerror(const char *s __attribute__ ((unused))) { #ifdef ERRAVAIL error("regexp: %s", s); diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc index 0ed42e7d8..b0d046897 100644 --- a/winsup/cygwin/thread.cc +++ b/winsup/cygwin/thread.cc @@ -573,7 +573,7 @@ __pthread_attr_getstacksize (pthread_attr_t * attr, size_t * size) }; int -__pthread_attr_destroy (pthread_attr_t * attr) +__pthread_attr_destroy (pthread_attr_t * /*attr*/) { return 0; }; @@ -673,23 +673,23 @@ __pthread_getsequence_np (pthread_t * thread) /* Thread SpecificData */ int -__pthread_key_create (pthread_key_t * key) +__pthread_key_create (pthread_key_t */*key*/) { NOT_IMP ("_p_key_create\n"); }; int -__pthread_key_delete (pthread_key_t * key) +__pthread_key_delete (pthread_key_t */*key*/) { NOT_IMP ("_p_key_delete\n"); }; int -__pthread_setspecific (pthread_key_t * key, const void *value) +__pthread_setspecific (pthread_key_t */*key*/, const void */*value*/) { NOT_IMP ("_p_key_setsp\n"); }; void * -__pthread_getspecific (pthread_key_t * key) +__pthread_getspecific (pthread_key_t */*key*/) { NOT_IMP ("_p_key_getsp\n"); }; @@ -754,7 +754,7 @@ __pthread_equal (pthread_t * t1, pthread_t * t2) /* Mutexes */ int -__pthread_mutex_init (pthread_mutex_t * mutex, const pthread_mutexattr_t * _attr) +__pthread_mutex_init (pthread_mutex_t * mutex, const pthread_mutexattr_t */*_attr*/) { SetResourceLock (LOCK_MUTEX_LIST, WRITE_LOCK | READ_LOCK, "__pthread_mutex_init"); |