newlib CVS - remove warnings
Joel Sherrill <joel@OARcorp.com>
joel.sherrill@OARcorp.com
Wed Jan 7 14:27:00 GMT 2004
Attached is a patch to remove warnings when compiling
for sparc-rtems. I believe the warnings will occur
on nearly all targets given the locations of the files.
2004-01-07 Joel Sherrill <joel@oarcorp.com>
* libc/ctype/iswctype.c, include/sys/reent.h,
libc/stdlib/a64l.c:
Remove warnings.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
-------------- next part --------------
2004-01-07 Joel Sherrill <joel@oarcorp.com>
* libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
Remove warnings.
Index: newlib/libc/ctype/iswctype.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/ctype/iswctype.c,v
retrieving revision 1.1
diff -u -r1.1 iswctype.c
--- newlib/libc/ctype/iswctype.c 20 Sep 2002 20:13:10 -0000 1.1
+++ newlib/libc/ctype/iswctype.c 7 Jan 2004 14:09:55 -0000
@@ -62,6 +62,7 @@
case WC_XDIGIT:
return iswxdigit (c);
default:
+ return 0; /* eliminate warning */
}
/* otherwise unknown */
Index: newlib/libc/include/sys/reent.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/reent.h,v
retrieving revision 1.25
diff -u -r1.25 reent.h
--- newlib/libc/include/sys/reent.h 22 Aug 2003 18:52:25 -0000 1.25
+++ newlib/libc/include/sys/reent.h 7 Jan 2004 14:09:55 -0000
@@ -698,7 +698,7 @@
#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)
Index: newlib/libc/stdlib/a64l.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/stdlib/a64l.c,v
retrieving revision 1.1
diff -u -r1.1 a64l.c
--- newlib/libc/stdlib/a64l.c 6 May 2002 20:44:54 -0000 1.1
+++ newlib/libc/stdlib/a64l.c 7 Jan 2004 14:09:55 -0000
@@ -62,7 +62,7 @@
_DEFUN (a64l, (input),
const char *input)
{
- char *ptr;
+ const char *ptr;
char ch;
int i, digit;
unsigned long result = 0;
More information about the Newlib
mailing list