Skip to content

Commit 2ceebf6

Browse files
committedOct 6, 2022
8294456: Fix misleading-indentation warnings in core JDK libraries
Reviewed-by: shade, rriggs, iris, darcy
1 parent ad7b7d4 commit 2ceebf6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
 

‎make/modules/java.base/lib/CoreLibraries.gmk

+1-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ $(eval $(call SetupNativeCompilation, BUILD_LIBFDLIBM, \
4949
CFLAGS_windows_debug := -DLOGGING, \
5050
CFLAGS_aix := -qfloat=nomaf, \
5151
DISABLED_WARNINGS_gcc := sign-compare, \
52-
DISABLED_WARNINGS_gcc_e_asin.c := misleading-indentation, \
53-
DISABLED_WARNINGS_gcc_k_rem_pio2.c := misleading-indentation maybe-uninitialized, \
52+
DISABLED_WARNINGS_gcc_k_rem_pio2.c := maybe-uninitialized, \
5453
DISABLED_WARNINGS_clang := sign-compare, \
5554
DISABLED_WARNINGS_microsoft := 4146, \
5655
DISABLED_WARNINGS_microsoft_e_exp.c := 4244, \

‎src/java.base/share/native/libfdlibm/e_asin.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ qS4 = 7.70381505559019352791e-02; /* 0x3FB3B8C5, 0xB12E9282 */
9999
if(huge+x>one) return x;/* return x with inexact if x!=0*/
100100
} else
101101
t = x*x;
102-
p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5)))));
103-
q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4)));
104-
w = p/q;
105-
return x+x*w;
102+
p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5)))));
103+
q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4)));
104+
w = p/q;
105+
return x+x*w;
106106
}
107107
/* 1> |x|>= 0.5 */
108108
w = one-fabs(x);

‎src/java.base/share/native/libfdlibm/k_rem_pio2.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ twon24 = 5.96046447753906250000e-08; /* 0x3E700000, 0x00000000 */
197197

198198
/* compute q[0],q[1],...q[jk] */
199199
for (i=0;i<=jk;i++) {
200-
for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; q[i] = fw;
200+
for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j];
201+
q[i] = fw;
201202
}
202203

203204
jz = jk;

0 commit comments

Comments
 (0)
Please sign in to comment.