[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/NEWLIB PATCH v2 5/6] Silence unused parameter warnings



Signed-off-by: Florian Schmidt <florian.schmidt@xxxxxxxxx>
Reviewed-by: Felipe Huici <felipe.huici@xxxxxxxxx>
---
 locale.c | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/locale.c b/locale.c
index c38aa3a..d432f37 100644
--- a/locale.c
+++ b/locale.c
@@ -1,26 +1,27 @@
 #include <string.h>
 #include <stddef.h>
 
-int strcoll_l(const char *s1, const char *s2,
-                               locale_t locale)
+int strcoll_l(const char *s1 __unused, const char *s2 __unused,
+               locale_t locale __unused)
 {
        return 0;
 }
 
-size_t strxfrm_l(char *restrict s1, const char *restrict s2,
-                               size_t n, locale_t locale)
+size_t strxfrm_l(char *restrict s1 __unused, const char *restrict s2 __unused,
+                       size_t n __unused, locale_t locale __unused)
 {
        return 0;
 }
 
-int wcscoll_l(const wchar_t *ws1, const wchar_t *ws2,
-                               locale_t locale)
+int wcscoll_l(const wchar_t *ws1 __unused, const wchar_t *ws2 __unused,
+                       locale_t locale __unused)
 {
        return 0;
 }
 
-size_t wcsxfrm_l(wchar_t *restrict ws1, const wchar_t *restrict ws2,
-                               size_t n, locale_t locale)
+size_t wcsxfrm_l(wchar_t *restrict ws1 __unused,
+                       const wchar_t *restrict ws2 __unused,
+                       size_t n __unused, locale_t locale __unused)
 {
        return 0;
 }
-- 
2.21.0


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.