This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
uchar redefinition warning from cpphash.h
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: Neil Booth <neil at daikokuya dot co dot uk>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Jun 2002 23:39:34 +0200 (MEST)
- Subject: uchar redefinition warning from cpphash.h
Neil,
I just noticed that this patch
2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
* cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
* cppfiles.c (read_include_file): Similarly.
* cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
uxstrdup ustrchr, ufputs): Similarly.
causes redefinition warnings on Tru64 UNIX V5.1:
/vol/gnu/src/gcc/gcc-dist/gcc/cpphash.h:32: warning: redefinition of `uchar'
include/sys/types.h:585: warning: `uchar' previously declared here
I suppose the same might happen on various BSD systems as well, so it may
be appropriate to choose a different name here?
Rainer