Skip to content

Commit 0ecb983

Browse files
[libc] suppress uninitialized werrors (#98710)
suppress uninitialized werrors when building with gcc
1 parent fb19649 commit 0ecb983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/math/generic/tan.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ LLVM_LIBC_FUNCTION(double, tan, (double x)) {
150150

151151
DoubleDouble y;
152152
unsigned k;
153-
generic::LargeRangeReduction<NO_FMA> range_reduction_large;
153+
generic::LargeRangeReduction<NO_FMA> range_reduction_large{};
154154

155155
// |x| < 2^32 (with FMA) or |x| < 2^23 (w/o FMA)
156156
if (LIBC_LIKELY(x_e < FPBits::EXP_BIAS + FAST_PASS_EXPONENT)) {
@@ -160,7 +160,7 @@ LLVM_LIBC_FUNCTION(double, tan, (double x)) {
160160
if (LIBC_UNLIKELY(x == 0.0))
161161
return x;
162162

163-
// For |x| < 2^-27, |tan(x) - x| < ulp(x)/2.
163+
// For |x| < 2^-27, |tan(x) - x| < ulp(x)/2.
164164
#ifdef LIBC_TARGET_CPU_HAS_FMA
165165
return fputil::multiply_add(x, 0x1.0p-54, x);
166166
#else

0 commit comments

Comments
 (0)