From 6bc841fa5c6e7358c7818366d65582b90dd2ce3f Mon Sep 17 00:00:00 2001 From: Freddie Chopin Date: Sat, 13 Sep 2014 10:18:12 +0200 Subject: [PATCH 3/4] libc/string/u_strerr.c (_user_strerror): Fix "unused parameter" warnings. --- newlib/libc/string/u_strerr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/newlib/libc/string/u_strerr.c b/newlib/libc/string/u_strerr.c index 7d902fe..2978df0 100644 --- a/newlib/libc/string/u_strerr.c +++ b/newlib/libc/string/u_strerr.c @@ -6,5 +6,10 @@ _DEFUN(_user_strerror, (errnum, internal, errptr), int internal _AND int *errptr) { + /* prevent warning about unused parameters */ + _CAST_VOID errnum; + _CAST_VOID internal; + _CAST_VOID errptr; + return 0; } -- 1.8.1.msysgit.1