diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-03-09 15:51:50 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-04-17 16:12:10 -0300 |
commit | 279ce840452e6da645579ca4169c0f0c25cac47f (patch) | |
tree | 734b7cfa0aae3a0bc5b5ccaa1d586490622d5ae9 /sysdeps/ieee754/flt-32 | |
parent | d2765f0fa2c6292ad25cfc6a74b91aa7ec0ea01a (diff) | |
download | glibc-279ce840452e6da645579ca4169c0f0c25cac47f.tar.gz glibc-279ce840452e6da645579ca4169c0f0c25cac47f.tar.xz glibc-279ce840452e6da645579ca4169c0f0c25cac47f.zip |
Suppress -Wmaybe-uninitialized only for gcc
The warning is not supported by clang.
Diffstat (limited to 'sysdeps/ieee754/flt-32')
-rw-r--r-- | sysdeps/ieee754/flt-32/e_lgammaf_r.c | 2 | ||||
-rw-r--r-- | sysdeps/ieee754/flt-32/s_log1pf.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/ieee754/flt-32/e_lgammaf_r.c b/sysdeps/ieee754/flt-32/e_lgammaf_r.c index a1a3a60454..77dc54eaeb 100644 --- a/sysdeps/ieee754/flt-32/e_lgammaf_r.c +++ b/sysdeps/ieee754/flt-32/e_lgammaf_r.c @@ -239,7 +239,7 @@ __ieee754_lgammaf_r(float x, int *signgamp) although in the cases where it is used it has always been set. */ DIAG_PUSH_NEEDS_COMMENT; - DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wmaybe-uninitialized"); + DIAG_IGNORE_NEEDS_COMMENT_GCC (4.9, "-Wmaybe-uninitialized"); if(hx<0) r = nadj - r; DIAG_POP_NEEDS_COMMENT; return r; diff --git a/sysdeps/ieee754/flt-32/s_log1pf.c b/sysdeps/ieee754/flt-32/s_log1pf.c index 555f0f82c8..cddc0f1e09 100644 --- a/sysdeps/ieee754/flt-32/s_log1pf.c +++ b/sysdeps/ieee754/flt-32/s_log1pf.c @@ -108,7 +108,7 @@ __log1pf(float x) because k must be 0 for c to be uninitialized and we handled that computation earlier without using c. */ DIAG_PUSH_NEEDS_COMMENT; - DIAG_IGNORE_Os_NEEDS_COMMENT (7, "-Wmaybe-uninitialized"); + DIAG_IGNORE_Os_NEEDS_COMMENT_GCC (7, "-Wmaybe-uninitialized"); return k * ln2_hi - ((hfsq - (s * (hfsq + R) + (k * ln2_lo + c))) - f); DIAG_POP_NEEDS_COMMENT; |