Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-98052

error: static assertion failed: Signal and slot arguments are not compatible (narrowing)

    XMLWordPrintable

Details

    • 4a948e04ce3c05a48390e5f2bb3d43ed194df729 (qt/qtinterfaceframework/dev) c89f5e7d9355215492a568e1f0064292439f42d7 (qt/qtinterfaceframework/6.2)

    Description

      /home/qt/work/qt/qtinterfaceframework/src/plugins/ifmedia/media_simulator/mediaplayerbackend.cpp
      agent:2021/11/08 06:59:34 build.go:394: In file included from /home/qt/work/install/include/QtCore/qobjectdefs.h:49,
      agent:2021/11/08 06:59:34 build.go:394:                  from /home/qt/work/install/include/QtCore/qobject.h:46,
      agent:2021/11/08 06:59:34 build.go:394:                  from /home/qt/work/install/include/QtCore/qsharedpointer_impl.h:65,
      agent:2021/11/08 06:59:34 build.go:394:                  from /home/qt/work/install/include/QtCore/qsharedpointer.h:48,
      agent:2021/11/08 06:59:34 build.go:394:                  from /home/qt/work/install/include/QtCore/qdebug.h:52,
      agent:2021/11/08 06:59:34 build.go:394:                  from /home/qt/work/install/include/QtCore/qloggingcategory.h:44,
      agent:2021/11/08 06:59:34 build.go:394:                  from /home/qt/work/install/include/QtCore/QLoggingCategory:1,
      agent:2021/11/08 06:59:34 build.go:394:                  from /home/qt/work/qt/qtinterfaceframework/src/plugins/ifmedia/media_simulator/logging.h:45,
      agent:2021/11/08 06:59:34 build.go:394:                  from /home/qt/work/qt/qtinterfaceframework/src/plugins/ifmedia/media_simulator/mediaplayerbackend.cpp:42:
      agent:2021/11/08 06:59:34 build.go:394: /home/qt/work/install/include/QtCore/qobjectdefs_impl.h: In instantiation of ‘struct QtPrivate::AreArgumentsCompatible<float, int>’:
      agent:2021/11/08 06:59:34 build.go:394: /home/qt/work/install/include/QtCore/qobjectdefs_impl.h:316:21:   required from ‘struct QtPrivate::CheckCompatibleArguments<QtPrivate::List<float>, QtPrivate::List<int> >’
      agent:2021/11/08 06:59:34 build.go:394: /home/qt/work/install/include/QtCore/qobject.h:230:123:   required from ‘static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType) [with Func1 = void (QAudioOutput::*)(float); Func2 = void (QIfMediaPlayerBackendInterface::*)(int); typename QtPrivate::FunctionPointer<Func>::Object = QAudioOutput; typename QtPrivate::FunctionPointer<Func2>::Object = QIfMediaPlayerBackendInterface]’
      agent:2021/11/08 06:59:34 build.go:394: /home/qt/work/qt/qtinterfaceframework/src/plugins/ifmedia/media_simulator/mediaplayerbackend.cpp:77:53:   required from here
      agent:2021/11/08 06:59:34 build.go:394: /home/qt/work/install/include/QtCore/qobjectdefs_impl.h:299:64: error: static assertion failed: Signal and slot arguments are not compatible (narrowing)
      agent:2021/11/08 06:59:34 build.go:394:   299 |         static_assert(AreArgumentsConvertibleWithoutNarrowing::value, "Signal and slot arguments are not compatible (narrowing)");
      agent:2021/11/08 06:59:34 build.go:394:       |                                                                ^~~~~
      

      Build log: https://testresults.qt.io/logs/qt/qtinterfaceframework/d55b150db6b6ccb727cb51a442277717a9214a86/LinuxUbuntu_20_04x86_64LinuxUbuntu_20_04x86_64GCCqtci-linux-Ubuntu-20.04-x86_64-50-a3954cSccache/faf91e9eb5a51700f7414e29ae4085dcfcab6b26/build_1636354648/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtinterfaceframework/tasks/1636354641

      Changes: https://codereview.qt-project.org/c/qt/qtinterfaceframework/+/380308

      Attachments

        For Gerrit Dashboard: QTBUG-98052
        # Subject Branch Project Status CR V

        Activity

          People

            gagi Dominik Holland
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes