diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-09-28 14:19:51 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-04-17 16:12:40 -0300 |
commit | c3e44655e442a1c1341898c9427fc371c4b5cf78 (patch) | |
tree | 032f5997320910bce9bb813666592f9de1b870f0 /sysdeps | |
parent | 0add13af81134d959a3d95f5c4c6ccf067332100 (diff) | |
download | glibc-c3e44655e442a1c1341898c9427fc371c4b5cf78.tar.gz glibc-c3e44655e442a1c1341898c9427fc371c4b5cf78.tar.xz glibc-c3e44655e442a1c1341898c9427fc371c4b5cf78.zip |
riscv: Suppress clang confstr -Wignored-attributes feupdateenv
clang warns that the alias will be always resolve to __GI___feupdateenv even if weak definition of __GI_feupdateenv is overridden, which is really the intention.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/riscv/rvf/feupdateenv.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/riscv/rvf/feupdateenv.c b/sysdeps/riscv/rvf/feupdateenv.c index 4d1cec5ee8..617df86b7a 100644 --- a/sysdeps/riscv/rvf/feupdateenv.c +++ b/sysdeps/riscv/rvf/feupdateenv.c @@ -27,4 +27,10 @@ __feupdateenv (const fenv_t *envp) } libm_hidden_def (__feupdateenv) weak_alias (__feupdateenv, feupdateenv) +/* clang warns that the alias will be always resolve to __GI___feupdateenv + even if weak definition of __GI_feupdateenv is overridden, which is really + the intention. */ +DIAG_PUSH_NEEDS_COMMENT_CLANG; +DIAG_IGNORE_NEEDS_COMMENT_CLANG (16, "-Wignored-attributes"); libm_hidden_weak (feupdateenv) +DIAG_POP_NEEDS_COMMENT_CLANG; |