PATCH: remove three more libiberty warnings
Ben Elliston
bje@au1.ibm.com
Wed Jul 13 21:58:00 GMT 2005
2005-07-13 Ben Elliston <bje@au.ibm.com>
* regex.c (TRANSLATE): Cast translation lookup to unsigned char.
Index: regex.c
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/libiberty/regex.c,v
retrieving revision 1.21
diff -u -p -r1.21 regex.c
--- regex.c 12 Jul 2005 04:40:33 -0000 1.21
+++ regex.c 13 Jul 2005 00:33:02 -0000
@@ -2,7 +2,9 @@
version 0.12.
(Implements POSIX draft P1003.2/D11.2, except for some of the
internationalization features.)
- Copyright (C) 1993-1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+
+ Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
+ 2002, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -1918,7 +1920,7 @@ static reg_errcode_t byte_compile_range
? (char) translate[(unsigned char) (d)] : (d))
# else /* BYTE */
# define TRANSLATE(d) \
- (translate ? (char) translate[(unsigned char) (d)] : (d))
+ (translate ? (unsigned char) translate[(unsigned char) (d)] : (d))
# endif /* WCHAR */
# endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050713/20edb0f5/attachment.sig>
More information about the Gcc-patches
mailing list