fixed some warnings .....
Manik Raina
manik@cisco.com
Sun Feb 3 02:02:00 GMT 2002
fixed some warnings in newlib.
diffs attached... synopsis of fixes
1. dprint.c
===========
parse_number() is defined but not used
2. dtoa.c
=========
mlo may be uninitialised in this function
3. ldtoa.c
==========
unused variables s, p, k, outstr
Index: misc/dprintf.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/misc/dprintf.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 dprintf.c
--- dprintf.c 2000/02/17 19:39:47 1.1.1.1
+++ dprintf.c 2002/02/03 09:53:55
@@ -15,7 +15,10 @@
#include "varargs.h"
#endif
+#ifdef FOR_LATER
static char *parse_number ();
+#endif
+
static long get_number ();
static void print_number ();
static void write_char ();
@@ -147,6 +150,8 @@
va_end (args);
}
+#ifdef FOR_LATER
+
/* Parse a positive decimal integer at S.
FIXME: Was used in earlier version, but not currently used.
Keep for now. */
@@ -167,6 +172,8 @@
*p = x;
return s;
}
+
+#endif /* FOR_LATER */
/* Fetch the number at S of SIZE bytes. */
Index: stdlib/dtoa.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/stdlib/dtoa.c,v
retrieving revision 1.2
diff -u -r1.2 dtoa.c
--- dtoa.c 2000/04/17 17:10:17 1.2
+++ dtoa.c 2002/02/03 09:53:55
@@ -229,7 +229,7 @@
int denorm;
__ULong x;
#endif
- _Bigint *b, *b1, *delta, *mlo, *mhi, *S;
+ _Bigint *b, *b1, *delta, *mlo = NULL, *mhi, *S;
double ds;
char *s, *s0;
Index: stdlib/ldtoa.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/stdlib/ldtoa.c,v
retrieving revision 1.3
diff -u -r1.3 ldtoa.c
--- ldtoa.c 2000/12/14 00:25:06 1.3
+++ ldtoa.c 2002/02/03 09:53:56
@@ -2836,11 +2836,8 @@
_ldcheck (long double *d)
{
unsigned short e[NI];
-char *s, *p;
-int k;
LDPARMS rnd;
LDPARMS *ldp = &rnd;
-char *outstr;
rnd.rlast = -1;
rnd.rndprc = NBITS;
--
$ /bin/laden
bash: /bin/laden: No such file or directory
-------------- next part --------------
? ctype/objectlist.awk.in
? errno/objectlist.awk.in
? locale/objectlist.awk.in
? machine/i386/objectlist.awk.in
? misc/objectlist.awk.in
? posix/readdir.loT
? posix/scandir.loT
? posix/closedir.loT
? posix/telldir.loT
? posix/opendir.loT
? reent/objectlist.awk.in
? signal/objectlist.awk.in
? stdio/objectlist.awk.in
? stdlib/objectlist.awk.in
? string/objectlist.awk.in
? sys/linux/siglist.inc
? sys/linux/objectlist.awk.in
? syscalls/Makefile
? syscalls/sysgettod.lo
? syscalls/.libs
? syscalls/sysclose.lo
? syscalls/syslink.lo
? syscalls/sysfork.lo
? syscalls/syskill.lo
? syscalls/sysfcntl.lo
? syscalls/systimes.lo
? syscalls/sysexecve.lo
? syscalls/sysfstat.lo
? syscalls/syslseek.lo
? syscalls/sysread.lo
? syscalls/sysopen.lo
? syscalls/sysgetpid.lo
? syscalls/syswrite.lo
? syscalls/syssbrk.lo
? syscalls/sysunlink.lo
? syscalls/syswait.lo
? syscalls/sysstat.lo
? syscalls/libsyscalls.la
? syscalls/objectlist.awk.in
? time/objectlist.awk.in
? unix/getpass.loT
? unix/getlogin.loT
? unix/ttyname.loT
? unix/getut.loT
Index: misc/dprintf.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/misc/dprintf.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 dprintf.c
--- dprintf.c 2000/02/17 19:39:47 1.1.1.1
+++ dprintf.c 2002/02/03 09:53:55
@@ -15,7 +15,10 @@
#include "varargs.h"
#endif
+#ifdef FOR_LATER
static char *parse_number ();
+#endif
+
static long get_number ();
static void print_number ();
static void write_char ();
@@ -147,6 +150,8 @@
va_end (args);
}
+#ifdef FOR_LATER
+
/* Parse a positive decimal integer at S.
FIXME: Was used in earlier version, but not currently used.
Keep for now. */
@@ -167,6 +172,8 @@
*p = x;
return s;
}
+
+#endif /* FOR_LATER */
/* Fetch the number at S of SIZE bytes. */
Index: stdlib/dtoa.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/stdlib/dtoa.c,v
retrieving revision 1.2
diff -u -r1.2 dtoa.c
--- dtoa.c 2000/04/17 17:10:17 1.2
+++ dtoa.c 2002/02/03 09:53:55
@@ -229,7 +229,7 @@
int denorm;
__ULong x;
#endif
- _Bigint *b, *b1, *delta, *mlo, *mhi, *S;
+ _Bigint *b, *b1, *delta, *mlo = NULL, *mhi, *S;
double ds;
char *s, *s0;
Index: stdlib/ldtoa.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/stdlib/ldtoa.c,v
retrieving revision 1.3
diff -u -r1.3 ldtoa.c
--- ldtoa.c 2000/12/14 00:25:06 1.3
+++ ldtoa.c 2002/02/03 09:53:56
@@ -2836,11 +2836,8 @@
_ldcheck (long double *d)
{
unsigned short e[NI];
-char *s, *p;
-int k;
LDPARMS rnd;
LDPARMS *ldp = &rnd;
-char *outstr;
rnd.rlast = -1;
rnd.rndprc = NBITS;
More information about the Newlib
mailing list