Skip to content

Commit 41e7148

Browse files
committed
libm: Disable float-equal diagnostics
I choose to believe these authors knew what they were doing.
1 parent 1b33cd1 commit 41e7148

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/libm/erf_lgamma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
*/
2525

2626
#include "fdlibm.h"
27+
#pragma GCC diagnostic ignored "-Wfloat-equal"
2728

2829
#define __ieee754_logf logf
2930

lib/libm/log1pf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
#include "libm.h"
2020

21+
#pragma GCC diagnostic ignored "-Wfloat-equal"
22+
2123
static const float
2224
ln2_hi = 6.9313812256e-01, /* 0x3f317180 */
2325
ln2_lo = 9.0580006145e-06, /* 0x3717f7d1 */

0 commit comments

Comments
 (0)