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>2002-02-05 20:14:35 +0300
committerJeff Johnston <jjohnstn@redhat.com>2002-02-05 20:14:35 +0300
commit27478365a283d54112eac1bb0b3af7686cc59160 (patch)
tree1cf828ec78061ad99065569f4e6f29f9ba3709a3 /newlib/libc
parent1c4bd58770c6131257b8830f2354944bfe3122b1 (diff)
2002-02-05 Manik Raina <manik@cisco.com>
* libc/misc/dprintf (parse_number): #if 0 unused function. * libc/stdlib/ldtoa.c (_ldcheck): Remove unused local variables s, p, k, and outstr. * libc/stdlib/dtoa.c (_dtoa_r): Initialize mlo.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/misc/dprintf.c5
-rw-r--r--newlib/libc/stdlib/dtoa.c2
-rw-r--r--newlib/libc/stdlib/ldtoa.c3
3 files changed, 6 insertions, 4 deletions
diff --git a/newlib/libc/misc/dprintf.c b/newlib/libc/misc/dprintf.c
index 071d177ca..0b780f59b 100644
--- a/newlib/libc/misc/dprintf.c
+++ b/newlib/libc/misc/dprintf.c
@@ -15,7 +15,10 @@
#include "varargs.h"
#endif
+#if 0
static char *parse_number ();
+#endif
+
static long get_number ();
static void print_number ();
static void write_char ();
@@ -147,6 +150,7 @@ __dprintf (fmt, va_alist)
va_end (args);
}
+#if 0
/* Parse a positive decimal integer at S.
FIXME: Was used in earlier version, but not currently used.
Keep for now. */
@@ -167,6 +171,7 @@ parse_number (s, p)
*p = x;
return s;
}
+#endif
/* Fetch the number at S of SIZE bytes. */
diff --git a/newlib/libc/stdlib/dtoa.c b/newlib/libc/stdlib/dtoa.c
index c9be9ed51..62597c755 100644
--- a/newlib/libc/stdlib/dtoa.c
+++ b/newlib/libc/stdlib/dtoa.c
@@ -229,7 +229,7 @@ _DEFUN (_dtoa_r,
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;
diff --git a/newlib/libc/stdlib/ldtoa.c b/newlib/libc/stdlib/ldtoa.c
index 0a4c3230f..da652dd42 100644
--- a/newlib/libc/stdlib/ldtoa.c
+++ b/newlib/libc/stdlib/ldtoa.c
@@ -2838,11 +2838,8 @@ int
_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;