about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-09-28 14:19:51 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-17 16:12:40 -0300
commitc3e44655e442a1c1341898c9427fc371c4b5cf78 (patch)
tree032f5997320910bce9bb813666592f9de1b870f0 /sysdeps
parent0add13af81134d959a3d95f5c4c6ccf067332100 (diff)
downloadglibc-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.c6
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;