Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Mar 2021 17:49:28 GMT
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 15211f195092 - main - Silence unused parameter warnings in the RISC-V fenv.h
Message-ID:  <202103221749.12MHnSUE039592@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arichardson:

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

commit 15211f19509282d9c9a418d4e5b6ac75d9d1fc85
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2021-03-22 17:47:50 +0000
Commit:     Alex Richardson <arichardson@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. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103221749.12MHnSUE039592>