This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
libstdc++ v3 and -Werror
- To: gcc at gcc dot gnu dot org
- Subject: libstdc++ v3 and -Werror
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Thu, 15 Jun 2000 19:57:04 -0700
- Cc: GNU C Library <libc-hacker at sourceware dot cygnus dot com>
<wctype.h> in glibc 2.1 has
---
...
typedef unsigned int wint_t
...
# define iswspace(wc) \
(__builtin_constant_p (wc) && (wc) >= L'\0' && (wc) <= L'\xff' \
? (int) (__ctype32_b[wc] & _ISwspace) : iswspace (wc))
---
With -Werror in libstdc++ v3, I got
cc1plus: warnings being treated as errors
In file included from /work/gnu/src/gcc-3.0/egcs/libstdc++-v3/src/locale.cc:41:
/work/gnu/src/gcc-3.0/egcs/libstdc++-v3/bits/std_cwctype.h: In function `int std::_S_iswspace_helper
(unsigned int)':
/work/gnu/src/gcc-3.0/egcs/libstdc++-v3/bits/std_cwctype.h:65: warning: comparison of unsigned expression >= 0 is always true
As the result, compilation failed.
H.J.