libstdc++ v3 and -Werror
H . J . Lu
hjl@lucon.org
Thu Jun 15 19:57:00 GMT 2000
<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.
More information about the Libc-hacker
mailing list