[Development] Strange behavior on 5.12 branch and moc genrated file ( KDE application )

Helio Chissini de Castro helio at kde.org
Thu Sep 6 14:38:08 CEST 2018


Hi

No, still getting same error.
The .moc generated file is the same, so or this not solve the issue, or
something is fishy on my environment.

I'm doing a full clean build by hand with your patch to dobcle check right
now, but as concerned on my current status, still a nope.

Here's the moc compile line that resulting the attached file:

kcoreaddons  1  /opt/qt5/bin/moc
-I/code/kde/build-kde/frameworks/kcoreaddons/autotests
-I/code/kde/build-kde/frameworks/kcoreaddons/autotests/jsonplugin2_autogen/include
-I/code/kde/build-kde/frameworks/kcoreaddons/src/lib/../..
-I/code/kde/build-kde/frameworks/kcoreaddons/src/lib/io
-I/code/kde/build-kde/frameworks/kcoreaddons/src/lib
-I/code/kde/src/frameworks/kcoreaddons/autotests
-I/code/kde/src/frameworks/kcoreaddons/src/lib/caching
-I/code/kde/src/frameworks/kcoreaddons/src/lib/io
-I/code/kde/src/frameworks/kcoreaddons/src/lib/jobs
-I/code/kde/src/frameworks/kcoreaddons/src/lib/plugin
-I/code/kde/src/frameworks/kcoreaddons/src/lib/randomness
-I/code/kde/src/frameworks/kcoreaddons/src/lib/text
-I/code/kde/src/frameworks/kcoreaddons/src/lib/util
-I/code/kde/src/frameworks/kcoreaddons/src/lib -I/opt/qt5/include
-I/opt/qt5/include/QtCore -I/opt/qt5/./mkspecs/linux-clang
"-DKDELIBS4CONFIGMIGRATOR_DATA_DIR=\"/code/kde/src/frameworks/kcoreaddons/autotests/data\""
-DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY
-DQT_NO_CAST_TO_ASCII -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT
-DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING
-DQT_USE_QSTRINGBUILDER -D_GNU_SOURCE -D_LARGEFILE64_SOURCE --include
/code/kde/build-kde/frameworks/kcoreaddons/autotests/jsonplugin2_autogen/moc_predefs.h
-o
/code/kde/build-kde/frameworks/kcoreaddons/autotests/jsonplugin2_autogen/include/jsonplugin2.moc
/code/kde/src/frameworks/kcoreaddons/autotests/jsonplugin2.cpp


[]'s


On Wed, 5 Sep 2018 at 19:05, Thiago Macieira <thiago.macieira at intel.com>
wrote:

> On Wednesday, 5 September 2018 09:57:30 PDT Thiago Macieira wrote:
> > On Wednesday, 5 September 2018 00:20:22 PDT Helio Chissini de Castro
> wrote:
> > > jsonplugin2.moc:153:1: error: narrowing conversion of ‘'\37777777703'’
> > > from ‘char’ to ‘unsigned char’ inside { } [-Wnarrowing]
> > >  };
> >
> > [cut]
> >
> > > lude/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',
> > >                                                ^~~~~~
> >
> > I guess I didn't test non-ASCII content.
> >
> > moc was changed recently to save data in CBOR format instead of our
> binary
> > JSON.
>
> Please test this fix:
> https://codereview.qt-project.org/238950
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
>
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20180906/8e63b43e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jsonplugin2.moc
Type: text/x-moc
Size: 5686 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20180906/8e63b43e/attachment.moc>


More information about the Development mailing list