diff --git a/newlib/ChangeLog b/newlib/ChangeLog index efadd77f8..5927e5701 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2004-01-08 Joel Sherrill + + * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c: + Remove warnings. + 2004-01-08 Joel Sherrill * libc/sys/rtems/sys/queue.h: New file. 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;