From 2467749d6d7603bbe63518e511eef4d0c3893c22 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Fri, 17 Apr 1998 08:26:33 +0000 Subject: 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 --- gcc/gthr-single.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/gthr-single.h') diff --git a/gcc/gthr-single.h b/gcc/gthr-single.h index 72edfc3..f8dfbff 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; } -- cgit v1.1