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 + + Fix final round of gcc warnings relating to unused parameters. + Wed Feb 23 21:59:44 2000 Christopher Faylor * 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 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");