...-expression cannot be narrowed from type 'int' to 'wchar_t' in initializer list [-Wc++11-narrowing]
TCHAR buf[2] = {ch,'\0'};
static_cast<> it away.
Differential D13991
Fix build of textproc/qt4-clucene on aarch64. The error message is similar
to a lot of the recent clang6 fixes, but doesn't show up on amd64:
../../../../src/3rdparty/clucene/src/CLucene/queryParser/Lexer.cpp:120:23: error: non-constant... adridg on Jan 19 2018, 10:37 PM. Authored by Tags None Referenced Files
Subscribers
Details ...-expression cannot be narrowed from type 'int' to 'wchar_t' in initializer list [-Wc++11-narrowing] TCHAR buf[2] = {ch,'\0'}; static_cast<> it away. Builds on aarch64 and amd64
Diff Detail
Event TimelineComment Actions sorry, got side-tracked while typing the answer (looking at qt5-help which had clucene too before). There is not much gained by renaming the patch apart from making portlint happy. I would keep them named like this until there is an actual content change in them. |