The branch main has been updated by arichardson:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=15211f19509282d9c9a418d4e5b6ac75d9d1fc85

commit 15211f19509282d9c9a418d4e5b6ac75d9d1fc85
Author:     Alex Richardson <arichard...@freebsd.org>
AuthorDate: 2021-03-22 17:47:50 +0000
Commit:     Alex Richardson <arichard...@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. */
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to