summaryrefslogtreecommitdiff
path: root/gcc/gthr-single.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-04-17 08:26:33 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-04-17 08:26:33 +0000
commit2467749d6d7603bbe63518e511eef4d0c3893c22 (patch)
tree5c3602924b7b22d249bf895c0f919338d22ffe17 /gcc/gthr-single.h
parentda372c07fcbc738d867d17c131abf590eabeaf04 (diff)
downloadgcc-2467749d6d7603bbe63518e511eef4d0c3893c22.tar.gz
Zap some warnings in target files:
* frame.c: Include stdlib.h and unistd.h to possibly get various function prototypes. The fixproto script guarantees these header files exist on the target system. * libgcc2.c: Likewise. * gthr-single.h (__gthread_mutex_lock, __gthread_mutex_trylock, __gthread_mutex_unlock): Add __attribute__ ((__unused__)) to the function parameters. * libgcc2.c (__udiv_w_sdiv): Likewise. From-SVN: r19261
Diffstat (limited to 'gcc/gthr-single.h')
-rw-r--r--gcc/gthr-single.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/gthr-single.h b/gcc/gthr-single.h
index 72edfc35285..f8dfbff4e64 100644
--- a/gcc/gthr-single.h
+++ b/gcc/gthr-single.h
@@ -42,19 +42,19 @@ __gthread_active_p ()
}
static inline int
-__gthread_mutex_lock (__gthread_mutex_t *mutex)
+__gthread_mutex_lock (__gthread_mutex_t *mutex __attribute__ ((__unused__)))
{
return 0;
}
static inline int
-__gthread_mutex_trylock (__gthread_mutex_t *mutex)
+__gthread_mutex_trylock (__gthread_mutex_t *mutex __attribute__ ((__unused__)))
{
return 0;
}
static inline int
-__gthread_mutex_unlock (__gthread_mutex_t *mutex)
+__gthread_mutex_unlock (__gthread_mutex_t *mutex __attribute__ ((__unused__)))
{
return 0;
}