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

warning: ‘malloc’ may be used uninitialized [-Wmaybe-uninitialized]

    XMLWordPrintable

Details

    • f8f23c43f (dev), f06ad33e4 (6.6), dc5e5758d (6.5), c89afcc39 (tqtc/lts-6.2)

    Description

      It makes no sense to me:

      In file included from /usr/include/c++/13/bits/stl_pair.h:61,
                       from /usr/include/c++/13/utility:69,
                       from /home/ahmad/devo/qt6-git/qtbase/src/corelib/global/qglobal.h:15,
                       from /home/ahmad/devo/qt6-git/qtbase/build/include/QtCore/qglobal.h:1,
                       from /home/ahmad/devo/qt6-git/qtbase/src/corelib/global/qt_pch.h:20,
                       from /home/ahmad/devo/qt6-git/qtbase/src/gui/kernel/qt_gui_pch.h:12,
                       from /home/ahmad/devo/qt6-git/qtbase/build/src/gui/CMakeFiles/Gui.dir/cmake_pch.hxx:5,
                       from <command-line>:
      In function ‘constexpr std::_Require<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> > std::swap(_Tp&, _Tp&) [with _Tp = QKdPointTree::Node]’,
          inlined from ‘constexpr void qSwap(T&, T&) [with T = QKdPointTree::Node]’ at /home/ahmad/devo/qt6-git/qtbase/src/corelib/global/qswap.h:38:9,
          inlined from ‘int QKdPointTree::build(int, int, int)’ at /home/ahmad/devo/qt6-git/qtbase/src/gui/painting/qpathclipper.cpp:653:10,
          inlined from ‘QKdPointTree::QKdPointTree(const QPathSegments&)’ at /home/ahmad/devo/qt6-git/qtbase/src/gui/painting/qpathclipper.cpp:588:27,
          inlined from ‘void QPathSegments::mergePoints()’ at /home/ahmad/devo/qt6-git/qtbase/src/gui/painting/qpathclipper.cpp:726:28:
      /usr/include/c++/13/bits/move.h:197:11: warning: ‘malloc’ may be used uninitialized [-Wmaybe-uninitialized]
        197 |       _Tp __tmp = _GLIBCXX_MOVE(__a);
            |           ^~~~~
      [1664/1664] Linking CXX shared module plugins/egldeviceintegrations/libqeglfs-kms-integration.so
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            ahmad.samir Ahmad Samir
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes