This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: No 'unsigned vs. 0' warnings in system headers
- To: Chip Salzenberg <chip at valinux dot com>
- Subject: Re: No 'unsigned vs. 0' warnings in system headers
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 29 Jun 2000 20:36:22 -0600
- cc: gcc-bugs at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <20000629105739.C19390@perlsupport.com>you write:
> According to Jeffrey A Law:
> > In message <20000628164718.D1325@perlsupport.com>you write:
> > > This fixes bootstrapping with libstdc++-v3.
> > >
> > >
> > > 2000-06-28 Chip Salzenberg <chip@valinux.com>
> > >
> > > * c-common.c (shorten_compare): Quiet warnings about unsigned
> > > comparisons with zero when they occur in a system header.
> > Err, doesn't this actually indicate a problem with libstdc++-v3 that
> > needs to be fixed?
>
> Not necessarily. The macros in <cwctype.h> can't assume that their
> parameters are either signed or unsigned, so they have to compare
> against zero. The C++ functions that use those macros take wint_t
> parameters, and wint_t is unsigned, but that's a valid choice.
Ah. OK. Makes perfect sense now. I'll put it back into the queue.
jeff