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

Build failure in qqmldebugserver: cleanup() defined but not used

    XMLWordPrintable

Details

    • 5280e866f76e38f2bf1c226ff896b4649194eec4

    Description

      Building Qt from git configured with "-no-qml-debug" gives:

      /build/qt5/qtdeclarative/src/qml/debugger/qqmldebugserver.cpp:342:13: error: ‘void cleanup()’ defined but not used [-Werror=unused-function]
       static void cleanup()
                   ^
      cc1plus: all warnings being treated as errors
      

      cleanup() seems to be used in line 403 of that file in a section guarded by #ifndef QT_QML_NO_DEBUGGER.
      Guarding the definition of cleanup() in the same way solve this build issue.

      Attachments

        1. qqmldebugger.patch
          0.5 kB
          Kai Pastor
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ulherman Ulf Hermann
            dg0yt Kai Pastor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes