summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/ctype/iswctype.c1
-rw-r--r--newlib/libc/include/sys/reent.h2
-rw-r--r--newlib/libc/stdlib/a64l.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/newlib/libc/ctype/iswctype.c b/newlib/libc/ctype/iswctype.c
index fbf5da7be..3f3eadfe5 100644
--- a/newlib/libc/ctype/iswctype.c
+++ b/newlib/libc/ctype/iswctype.c
@@ -62,6 +62,7 @@ _DEFUN(iswctype,(c, desc), wint_t c _AND wctype_t desc)
case WC_XDIGIT:
return iswxdigit (c);
default:
+ return 0; /* eliminate warning */
}
/* otherwise unknown */
diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h
index a5d6f5c9e..e783e842e 100644
--- a/newlib/libc/include/sys/reent.h
+++ b/newlib/libc/include/sys/reent.h
@@ -698,7 +698,7 @@ struct _reent
#define _REENT_MP_RESULT_K(ptr) ((ptr)->_result_k)
#define _REENT_MP_P5S(ptr) ((ptr)->_p5s)
#define _REENT_MP_FREELIST(ptr) ((ptr)->_freelist)
-#define _REENT_ASCTIME_BUF(ptr) (&(ptr)->_new._reent._asctime_buf)
+#define _REENT_ASCTIME_BUF(ptr) ((ptr)->_new._reent._asctime_buf)
#define _REENT_TM(ptr) (&(ptr)->_new._reent._localtime_buf)
#define _REENT_EMERGENCY(ptr) ((ptr)->_emergency)
#define _REENT_STRTOK_LAST(ptr) ((ptr)->_new._reent._strtok_last)
diff --git a/newlib/libc/stdlib/a64l.c b/newlib/libc/stdlib/a64l.c
index 9a56a9141..93c8e834b 100644
--- a/newlib/libc/stdlib/a64l.c
+++ b/newlib/libc/stdlib/a64l.c
@@ -62,7 +62,7 @@ long
_DEFUN (a64l, (input),
const char *input)
{
- char *ptr;
+ const char *ptr;
char ch;
int i, digit;
unsigned long result = 0;