Re: contrib/libc++/include/locale contains -Wsign-compare errors

2014-02-07 Thread Dimitry Andric
On 07 Feb 2014, at 19:04, Alan Somers wrote: ... > In file included from use_locale.cpp:1: > /usr/include/c++/v1/locale:1016:27: error: comparison of integers of different > signs: 'long' and 'size_type' (aka 'unsigned long') > [-Werror,-Wsign-compare] >if (__a_end - __a == __buf

contrib/libc++/include/locale contains -Wsign-compare errors

2014-02-07 Thread Alan Somers
contrib/libc++/include/locale compares integers of different signs. With our CXXFLAG settings, this causes "WITH_TESTS=1 make buildworld" to fail while compiling libatf-c++, as I mentioned in another thread. I've now written a minimal test case. Just #include locale and compile it with the right s