Perhaps it's related with https://codereview.qt-project.org/#/c/235352/ .
--Liang On Wed, 5 Sep 2018 at 09:20, Helio Chissini de Castro <he...@kde.org> wrote: > Morning guys > > After compile 5.12 branch from yesterday morning, i got one KDE > application failing due a compiler error on a generated moc file. > Is there any moc relevant change ? I didn't change my compiler environment > from previous 5.11 and always compile all in a clean chroot, with no > previous versions installed. > Qt itself was build with clang 6.0.1 > > Here's the logs > > With gcc 8.1.1 x86_64: > > In file included from > /code/kde/src/frameworks/kcoreaddons/autotests/jsonplugin2.cpp:23: > /code/kde/src/frameworks/kcoreaddons/src/lib/plugin/kpluginfactory.h: In > member function ‘void KPluginFactory::registerPlugin(const QString&, > KPluginFactory::CreateInstanceFunction) [with T = JsonPlugin2; > KPluginFactory::CreateInstanceFunction = QObject* (*)(QWidget*, QObject*, > const QList<QVariant>&); QVariantList = QList<QVariant>]’: > /code/kde/src/frameworks/kcoreaddons/src/lib/plugin/kpluginfactory.h:487:74: > warning: zero as null pointer constant [-Wzero-as-null-pointer-constant] > = > InheritanceChecker<T>().createInstanceFunction(reinterpret_cast<T *>(0))) > > ^~~~~~~~~~~~~~~~~~~~~~~~ > In file included from > /code/kde/src/frameworks/kcoreaddons/autotests/jsonplugin2.cpp:34: > /code/kde/build-kde/frameworks/kcoreaddons/autotests/jsonplugin2_autogen/include/jsonplugin2.moc: > At global scope: > /code/kde/build-kde/frameworks/kcoreaddons/autotests/jsonplugin2_autogen/include/jsonplugin2.moc:153:1: > error: narrowing conversion of ‘'\37777777703'’ from ‘char’ to ‘unsigned > char’ inside { } [-Wnarrowing] > }; > ^ > /code/kde/build-kde/frameworks/kcoreaddons/autotests/jsonplugin2_autogen/include/jsonplugin2.moc:153:1: > error: narrowing conversion of ‘'\37777777651'’ from ‘char’ to ‘unsigned > char’ inside { } [-Wnarrowing] > .... > > > With clang 6.0.1 x86_64 > > [ 63%] Building CXX object > autotests/CMakeFiles/jsonplugin2.dir/jsonplugin2.cpp.o > In file included from > /code/kde/src/frameworks/kcoreaddons/autotests/jsonplugin2.cpp:34: > /code/kde/build-kde/frameworks/kcoreaddons/autotests/jsonplugin2_autogen/include/jsonplugin2.moc:123:48: > error: constant expression evaluates to -61 > which cannot be narrowed to type 'unsigned char' [-Wc++11-narrowing] > ']', 0x76, 'E', 's', 't', 'e', ' ', '\xc3', > ^~~~~~ > /code/kde/build-kde/frameworks/kcoreaddons/autotests/jsonplugin2_autogen/include/jsonplugin2.moc:123:48: > note: insert an explicit cast to silence > this issue > ']', 0x76, 'E', 's', 't', 'e', ' ', '\xc3', > ^~~~~~ > static_cast<unsigned char>( > ) > /code/kde/build-kde/frameworks/kcoreaddons/autotests/jsonplugin2_autogen/include/jsonplugin2.moc:124:5: > error: constant expression evaluates to -87 > which cannot be narrowed to type 'unsigned char' [-Wc++11-narrowing] > '\xa9', ' ', 'o', 'u', 't', 'r', 'o', ' ', > ^~~~~~ > > Any idea ? > > > _______________________________________________ > Development mailing list > Development@qt-project.org > http://lists.qt-project.org/mailman/listinfo/development >
_______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development