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

error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]

XMLWordPrintable

    • macOS
    • f9c43a37b (dev), 294ed7c52 (6.9), d87d3b89a (6.8)

      /Users/qt/work/qt/qtapplicationmanager/src/tools/packager/packagingjob.cpp:140:13: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
                 irfile.open(QFile::ReadOnly);
                  ^~~~~~ ~~~~~~~~~~~~~~~
      1 error generated.
      

      Build log: https://testresults.qt.io/logs/qt/qtapplicationmanager/8b9a0044db6522172e56136e4b6338a84ef98de2/MacOSMacOS_14arm64MacOSMacOS_14arm64Clangqtci-macos-14-arm-106-50a7b1UseConfigure_WarningsAreErrors/6944d0fb5c9bb2b8aacb753f7214751289e5b521/build_1736401215/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtapplicationmanager/tasks/1736401098

      Tested changes (refs/builds/qtci/dev/1736401097):
      https://codereview.qt-project.org/c/qt/qtapplicationmanager/+/610347/1 Bump version to 6.10.0
      https://codereview.qt-project.org/c/qt/qtapplicationmanager/+/614819/2 Update dependencies on 'dev' in qt/qtapplicationmanager

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

            vhilshei Volker Hilsheimer
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes