svn commit: r352341 - head/contrib/libedit

Baptiste Daroussin bapt at FreeBSD.org
Mon Sep 16 07:08:08 UTC 2019


On Sat, Sep 14, 2019 at 09:49:43PM +0000, Dimitry Andric wrote:
> Author: dim
> Date: Sat Sep 14 21:49:42 2019
> New Revision: 352341
> URL: https://svnweb.freebsd.org/changeset/base/352341
> 
> Log:
>   Fix arm and aarch64 builds of libedit after r352275
>   
>   On arm and arm64, where chars are unsigned by default, buildworld dies
>   with:
>   
>   --- terminal.o ---
>   /usr/src/contrib/libedit/terminal.c:569:41: error: comparison of
>   integers of different signs: 'wint_t' (aka 'int') and 'wchar_t' (aka
>   'unsigned int') [-Werror,-Wsign-compare]
>                                        el->el_cursor.v][where & 0370] !=
>                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
>   /usr/src/contrib/libedit/terminal.c:659:28: error: comparison of
>   integers of different signs: 'wint_t' (aka 'int') and 'wchar_t' (aka
>   'unsigned int') [-Werror,-Wsign-compare]
>                                        [el->el_cursor.h] == MB_FILL_CHAR)
>                                        ~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~
>   
>   Fix this by making MB_FILL_CHAR a wint_t, so no casting is needed.
>   
>   Note that in https://reviews.freebsd.org/D21584 this was also proposed
>   by Yuichiro Naito <naito.yuichiro_gmail.com>.
>   
>   Reviewed by:	bapt
>   Subscribers:	naito.yuichiro_gmail.com, ml_vishwin.info
>   MFC after:	3 weeks
>   X-MFC-With:	r352275
>   Differential Revision: https://reviews.freebsd.org/D21657
> 
Just for completeness it was also approved by christos at NetBSD (upstream)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20190916/bc9b5b09/attachment.sig>


More information about the svn-src-all mailing list