Skip to content

Commit

Permalink
lib/libm/kf_rem_pio: Fix uninitialized issued when compiling with gcc…
Browse files Browse the repository at this point in the history
… 13.2.rel1.
  • Loading branch information
kwagyeman committed Jan 16, 2024
1 parent efa54c2 commit 98b96d8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/libm/kf_rem_pio2.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ one = 1.0f,
two8 = 2.5600000000e+02f, /* 0x43800000 */
twon8 = 3.9062500000e-03f; /* 0x3b800000 */

#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif

#ifdef __STDC__
int __kernel_rem_pio2f(float *x, float *y, int e0, int nx, int prec, const __uint8_t *ipio2)
#else
Expand Down Expand Up @@ -216,3 +221,7 @@ twon8 = 3.9062500000e-03f; /* 0x3b800000 */
}
return n&7;
}

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif

0 comments on commit 98b96d8

Please sign in to comment.