From 8b8952064cfacf91b18aed37fbd44f621edb6941 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Thu, 11 Feb 2016 20:16:06 -0600 Subject: Fix compile with GCC 5 -Werror newlib/libc/ * stdio64/freopen64.c: Include for memset(). * stdlib/quick_exit.c: Include for _exit(). * string/gnu_basename.c (__gnu_basename): Fix discarded const qualifier warning. * stdlib/strtold.c: Include "mprec.h" for _strtorx_r(). Signed-off-by: Yaakov Selkowitz --- newlib/libc/string/gnu_basename.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/string/gnu_basename.c') diff --git a/newlib/libc/string/gnu_basename.c b/newlib/libc/string/gnu_basename.c index 46b92d0fd..90e22ccdf 100644 --- a/newlib/libc/string/gnu_basename.c +++ b/newlib/libc/string/gnu_basename.c @@ -20,7 +20,7 @@ _DEFUN (__gnu_basename, (path), char *p; if ((p = strrchr (path, '/'))) return p + 1; - return path; + return (char *) path; } #endif /* !_NO_BASENAME */ -- cgit v1.2.3