This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] dbl-64/e_sqrt.c: fix -Wunused-variable


On Okt 20 2016, Yury Norov <ynorov@caviumnetworks.com> wrote:

> EMULV() doesn't need p, hx, tx and ty if DLA_FMS is defined.
> If that variables are needed for EMULV() only, GCC warns about
> unused variables, like this:
>
> ../sysdeps/ieee754/dbl-64/e_sqrt.c: In function ‘__ieee754_sqrt’:
> ../sysdeps/ieee754/dbl-64/e_sqrt.c:56:54: warning: unused variable ‘ty’ [-Wunused-variable]
>    double y, t, del, res, res1, hy, z, zz, p, hx, tx, ty, s;
> 						      ^
> This patch fixes it for sysdeps/ieee754/dbl-64/e_sqrt.c where it happens.

You only need that because you are getting the sysdep dir order wrong.
This file should not be used on aarch64, but rather the one in
sysdeps/aarch64/fpu.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]