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

building Qt from sources: warning about possibly unitialized QQmlInstruction::instr_common::code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.2.1
    • 5.2.0
    • None
    • newest qt sources from git

      > g++ --version
      g++ (SUSE Linux) 4.7.2 20130108 [gcc-4_7-branch revision 195012]
    • 612785f39e325b0578be89e09b0e32d7d08d471e

    Description

      Newest qt sources from git; during compilation I get:

      In file included from /tmp/permanent/src/qt5-git/qtdeclarative/src/qml/qml/qqmlcompiler_p.h:58:0,
                       from /tmp/permanent/src/qt5-git/qtdeclarative/src/qml/qml/qqmlcompiler.cpp:42:
      /tmp/permanent/src/qt5-git/qtdeclarative/src/qml/qml/qqmlinstruction_p.h:540:1: error: ‘done.QQmlInstructionData<2>::<anonymous>.QQmlInstruction::instr_common::code’ may be used uninitialized in this function [-Werror=uninitialized]
      /tmp/permanent/src/qt5-git/qtdeclarative/src/qml/qml/qqmlcompiler.cpp:956:23: note: ‘done.QQmlInstructionData<2>::<anonymous>.QQmlInstruction::instr_common::code’ was declared here
      cc1plus: all warnings being treated as errors
      

      (I've solved it for myself by adding

      QMAKE_CXXFLAGS_DEBUG    += -Wno-error=uninitialized
      QMAKE_CXXFLAGS_RELEASE  += -Wno-error=uninitialized

      to qtdeclarative/src/qml/qml.pro but still... )

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            wiecko Marek Wieckowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes