git: 6462d714c766 - stable/13 - Silence unused parameter warnings in the RISC-V fenv.h

Alex Richardson arichardson at FreeBSD.org
Sat Apr 10 13:29:55 UTC 2021


The branch stable/13 has been updated by arichardson:

URL: https://cgit.FreeBSD.org/src/commit/?id=6462d714c76639fc34edd8345f0bd814ad688db4

commit 6462d714c76639fc34edd8345f0bd814ad688db4
Author:     Alex Richardson <arichardson at FreeBSD.org>
AuthorDate: 2021-03-22 17:47:50 +0000
Commit:     Alex Richardson <arichardson at FreeBSD.org>
CommitDate: 2021-04-10 12:52:40 +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
    
    (cherry picked from commit 15211f19509282d9c9a418d4e5b6ac75d9d1fc85)
---
 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-branches mailing list