git: 15211f195092 - main - Silence unused parameter warnings in the RISC-V fenv.h
Alex Richardson
arichardson at FreeBSD.org
Mon Mar 22 17:49:29 UTC 2021
The branch main has been updated by arichardson:
URL: https://cgit.FreeBSD.org/src/commit/?id=15211f19509282d9c9a418d4e5b6ac75d9d1fc85
commit 15211f19509282d9c9a418d4e5b6ac75d9d1fc85
Author: Alex Richardson <arichardson at FreeBSD.org>
AuthorDate: 2021-03-22 17:47:50 +0000
Commit: Alex Richardson <arichardson at FreeBSD.org>
CommitDate: 2021-03-22 17:49:24 +0000
Silence unused parameter warnings in the RISC-V fenv.h
After increasing the lib/msun/tests WARNS to 6, this triggers a
compilation error for RISC-V.
Fixes: 87d65c747a43 ("lib/msun: Allow building tests with WARNS=6")
Reported by: Jenkins
---
lib/msun/riscv/fenv.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/msun/riscv/fenv.h b/lib/msun/riscv/fenv.h
index f9d840d156fa..6c8c2861bc97 100644
--- a/lib/msun/riscv/fenv.h
+++ b/lib/msun/riscv/fenv.h
@@ -186,7 +186,7 @@ fegetenv(fenv_t *__envp)
}
__fenv_static inline int
-feholdexcept(fenv_t *__envp)
+feholdexcept(fenv_t *__envp __unused)
{
/* No exception traps. */
@@ -226,7 +226,7 @@ int fedisableexcept(int __mask);
int fegetexcept(void);
#else
static inline int
-feenableexcept(int __mask)
+feenableexcept(int __mask __unused)
{
/* No exception traps. */
@@ -235,7 +235,7 @@ feenableexcept(int __mask)
}
static inline int
-fedisableexcept(int __mask)
+fedisableexcept(int __mask __unused)
{
/* No exception traps. */
More information about the dev-commits-src-main
mailing list