diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-17 08:26:33 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-17 08:26:33 +0000 |
commit | 8c3046881134b6f302c9153e02d3ce52ac94a110 (patch) | |
tree | 5c3602924b7b22d249bf895c0f919338d22ffe17 /gcc/gthr-single.h | |
parent | caeef7d92e5174f6df8236e6dc19221a8f1e09bb (diff) | |
download | gcc-8c3046881134b6f302c9153e02d3ce52ac94a110.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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19261 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gthr-single.h')
-rw-r--r-- | gcc/gthr-single.h | 6 |
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; } |