This patch fixes a few compiler warnings in stdlib when using a newish
compiler.
Andrew
Index: language/c/libc/stdlib/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/language/c/libc/stdlib/current/ChangeLog,v
retrieving revision 1.10
diff -u -r1.10 ChangeLog
--- language/c/libc/stdlib/current/ChangeLog 29 Dec 2005 09:55:29 -0000 1.10
+++ language/c/libc/stdlib/current/ChangeLog 23 Dec 2008 23:39:25 -0000
@@ -1,3 +1,8 @@
+2008-12-23 Andrew Lunn <[email protected]>
+
+ * src/strtoull.cxx, src/strtoll.cxx, src/strtoul.cxx, src/strtoul.cxx:
+ lisp'ify to avoid compiler warnings.
+
2005-12-27 Sergei Organov <[email protected]>
* src/strtod.cxx (Ise): 'd' and 'D' aren't allowed in floating
Index: language/c/libc/stdlib/current/src/strtol.cxx
===================================================================
RCS file: /cvs/ecos/ecos/packages/language/c/libc/stdlib/current/src/strtol.cxx,v
retrieving revision 1.3
diff -u -r1.3 strtol.cxx
--- language/c/libc/stdlib/current/src/strtol.cxx 23 May 2002 23:07:21 -0000 1.3
+++ language/c/libc/stdlib/current/src/strtol.cxx 23 Dec 2008 23:39:25 -0000
@@ -179,7 +179,7 @@
break;
if (c >= base)
break;
- if (any < 0 || acc > cutoff || acc == cutoff && c > cutlim)
+ if ((any < 0) || (acc > cutoff) || ((acc == cutoff) && (c > cutlim)))
any = -1;
else {
any = 1;
Index: language/c/libc/stdlib/current/src/strtoll.cxx
===================================================================
RCS file: /cvs/ecos/ecos/packages/language/c/libc/stdlib/current/src/strtoll.cxx,v
retrieving revision 1.1
diff -u -r1.1 strtoll.cxx
--- language/c/libc/stdlib/current/src/strtoll.cxx 18 Aug 2004 14:12:19 -0000 1.1
+++ language/c/libc/stdlib/current/src/strtoll.cxx 23 Dec 2008 23:39:25 -0000
@@ -175,7 +175,7 @@
break;
if (c >= base)
break;
- if (any < 0 || acc > cutoff || acc == cutoff && c > cutlim)
+ if ((any < 0) || (acc > cutoff) || ((acc == cutoff) && (c > cutlim)))
any = -1;
else {
any = 1;
Index: language/c/libc/stdlib/current/src/strtoul.cxx
===================================================================
RCS file: /cvs/ecos/ecos/packages/language/c/libc/stdlib/current/src/strtoul.cxx,v
retrieving revision 1.3
diff -u -r1.3 strtoul.cxx
--- language/c/libc/stdlib/current/src/strtoul.cxx 23 May 2002 23:07:21 -0000 1.3
+++ language/c/libc/stdlib/current/src/strtoul.cxx 23 Dec 2008 23:39:25 -0000
@@ -155,7 +155,7 @@
break;
if (c >= base)
break;
- if (any < 0 || acc > cutoff || acc == cutoff && c > cutlim)
+ if ((any < 0) || (acc > cutoff) || ((acc == cutoff) && (c > cutlim)))
any = -1;
else {
any = 1;
Index: language/c/libc/stdlib/current/src/strtoull.cxx
===================================================================
RCS file: /cvs/ecos/ecos/packages/language/c/libc/stdlib/current/src/strtoull.cxx,v
retrieving revision 1.1
diff -u -r1.1 strtoull.cxx
--- language/c/libc/stdlib/current/src/strtoull.cxx 18 Aug 2004 14:12:19 -0000 1.1
+++ language/c/libc/stdlib/current/src/strtoull.cxx 23 Dec 2008 23:39:25 -0000
@@ -151,7 +151,7 @@
break;
if (c >= base)
break;
- if (any < 0 || acc > cutoff || acc == cutoff && c > cutlim)
+ if ((any < 0) || (acc > cutoff) || ((acc == cutoff) && (c > cutlim)))
any = -1;
else {
any = 1;