diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-04-17 08:26:33 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1998-04-17 08:26:33 +0000 |
commit | 2467749d6d7603bbe63518e511eef4d0c3893c22 (patch) | |
tree | 5c3602924b7b22d249bf895c0f919338d22ffe17 /gcc/libgcc2.c | |
parent | da372c07fcbc738d867d17c131abf590eabeaf04 (diff) | |
download | gcc-2467749d6d7603bbe63518e511eef4d0c3893c22.zip gcc-2467749d6d7603bbe63518e511eef4d0c3893c22.tar.gz gcc-2467749d6d7603bbe63518e511eef4d0c3893c22.tar.bz2 |
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/libgcc2.c')
-rw-r--r-- | gcc/libgcc2.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index dad2dca..690d6bf 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -31,6 +31,11 @@ Boston, MA 02111-1307, USA. */ do not apply. */ #include "tconfig.h" + +/* fixproto guarantees these system headers exist. */ +#include <stdlib.h> +#include <unistd.h> + #include "machmode.h" #include "defaults.h" #ifndef L_trampoline @@ -391,7 +396,10 @@ __udiv_w_sdiv (USItype *rp, USItype a1, USItype a0, USItype d) #else /* If sdiv_qrnnd doesn't exist, define dummy __udiv_w_sdiv. */ USItype -__udiv_w_sdiv (USItype *rp, USItype a1, USItype a0, USItype d) +__udiv_w_sdiv (USItype *rp __attribute__ ((__unused__)), + USItype a1 __attribute__ ((__unused__)), + USItype a0 __attribute__ ((__unused__)), + USItype d __attribute__ ((__unused__))) { return 0; } |