Bug#884892: newsboat: FTBFS on arm*: filter/Scanner.cpp: sign-compare errors
Source: newsboat
Version: 2.10.1-1
Severity: important
Tags: upstream
Justification: fails to build from source
User: debian-arm@lists.debian.org
Usertags: arm64 armel armhf
Builds of newsboat for arm* have been failing:
g++ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Werror -Wall -Wextra -Wunreachable-code -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/aarch64-linux-gnu -I/usr/include/libxml2 -I/usr/include/json-c -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/usr/include/ncursesw -o filter/Scanner.o -c filter/Scanner.cpp
filter/Scanner.cpp: In member function 'Token* Scanner::NextToken()':
filter/Scanner.cpp:588:12: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if ((ch >= L'-' && ch <= L'.') || (ch >= L'A' && ch <= L'Z') || ch == L'_' || (ch >= L'a' && ch <= L'z')) {AddCh(); goto case_3;}
[...]
filter/Scanner.cpp:621:31: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
else if ((ch >= L'0' && ch <= L'9')) {AddCh(); goto case_6;}
~~~^~~~~~~
cc1plus: all warnings being treated as errors
Makefile:112: recipe for target 'filter/Scanner.o' failed
I presume wchar_t is unsigned on these architectures. Could you
please take a look and account for this possibility (or whatever the
problem turns out to be)?
Thanks!
--
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?amu@monk.mit.edu
Reply to: