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

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Fri, 7 Feb 2014 22:19:41 +0100
On 07 Feb 2014, at 19:04, Alan Somers <asomers_at_freebsd.org> 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.size())
>            ~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~

Fixed in r261608 (in a somewhat cleaner way than r261604).  It's also
going to be applied upstream.

-Dimitry


Received on Fri Feb 07 2014 - 20:19:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:46 UTC