Skip to content

Commit 1e2031f

Browse files
avoid a couple of GCC warnings.
insert a new line to avoid: rem_pio2q.c:174:13: error: this 'for' clause does not guard... [-Werror=misleading-indentation] and for sqrtq.c, #ifdef a variable the same as the usage.
1 parent d16a38d commit 1e2031f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

external/gpl3/gcc/dist/libquadmath/math/rem_pio2q.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ __quadmath_kernel_rem_pio2 (double *x, double *y, int e0, int nx, int prec, cons
171171

172172
/* compute q[0],q[1],...q[jk] */
173173
for (i=0;i<=jk;i++) {
174-
for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; q[i] = fw;
174+
for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j];
175+
q[i] = fw;
175176
}
176177

177178
jz = jk;

external/gpl3/gcc/dist/libquadmath/math/sqrtq.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ __float128
2020
sqrtq (const __float128 x)
2121
{
2222
__float128 y;
23+
#if !USE_SOFT_FP
2324
int exp;
25+
#endif
2426

2527
if (isnanq (x) || (isinfq (x) && x > 0))
2628
return x;

0 commit comments

Comments
 (0)