[PATCH] small newlib compile fix
Lars Munch
lars at segv.dk
Mon Jul 26 20:30:55 UTC 2004
Hi All
While building an arm-rtems gcc-3.4 cross compiler I ran into a very
small newlib problem with empty "default:" statements in two switch cases.
The attached patch fixes this. Please add this to newlib-1.11.0-rtems diff.
Thanks
Lars Munch
-------------- next part --------------
diff -Nru newlib-1.11.0/newlib/libc/ctype/iswctype.c newlib-1.11.0.fix/newlib/libc/ctype/iswctype.c
--- newlib-1.11.0/newlib/libc/ctype/iswctype.c 2002-09-20 22:13:10.000000000 +0200
+++ newlib-1.11.0.fix/newlib/libc/ctype/iswctype.c 2004-07-26 22:23:09.000000000 +0200
@@ -62,6 +62,7 @@
case WC_XDIGIT:
return iswxdigit (c);
default:
+ break;
}
/* otherwise unknown */
diff -Nru newlib-1.11.0/newlib/libc/ctype/wctype.c newlib-1.11.0.fix/newlib/libc/ctype/wctype.c
--- newlib-1.11.0/newlib/libc/ctype/wctype.c 2002-09-20 22:13:10.000000000 +0200
+++ newlib-1.11.0.fix/newlib/libc/ctype/wctype.c 2004-07-26 22:22:34.000000000 +0200
@@ -121,6 +121,7 @@
return WC_XDIGIT;
break;
default:
+ break;
}
/* otherwise invalid */
More information about the users
mailing list