Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2004-01-08 22:33:13 +0300
committerJeff Johnston <jjohnstn@redhat.com>2004-01-08 22:33:13 +0300
commitc9524c0cd8a7dfef5761706e7b30bf64a3e2df34 (patch)
treec80264855fb1dd5634195072409933ffb9c9fe93
parent9f13ccb3562531b31642db1151f126fe31c972fb (diff)
2004-01-08 Joel Sherrill <joel@oarcorp.com>
* libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c: Remove warnings.
-rw-r--r--newlib/ChangeLog5
-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
4 files changed, 8 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index efadd77f8..5927e5701 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,10 @@
2004-01-08 Joel Sherrill <joel@oarcorp.com>
+ * libc/ctype/iswctype.c, include/sys/reent.h, libc/stdlib/a64l.c:
+ Remove warnings.
+
+2004-01-08 Joel Sherrill <joel@oarcorp.com>
+
* libc/sys/rtems/sys/queue.h: New file.
* libc/include/sys/signal.h: Reflect renumbering of signals to
fit into 32-bit mask.
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;