This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libstdc++ v3 and -Werror


<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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]