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

warning C4834: discarding return value of function with [[nodiscard]] attribute

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P0: Blocker
    • 6.10.0 FF
    • 6.10.0 FF
    • Active Qt
    • None
    • Windows
    • 34616c5e7 (dev)

    Description

      C:\Users\qt\work\qt\qtactiveqt\tools\dumpdoc\main.cpp(72): error C2220: the following warning is treated as an error
      C:\Users\qt\work\qt\qtactiveqt\tools\dumpdoc\main.cpp(72): warning C4834: discarding return value of function with [[nodiscard]] attribute
      ninja: build stopped: subcommand failed.
      Process finished with error: exit status 1
      

      Build log: https://testresults.qt.io/logs/qt/qtactiveqt/54abb11d266c7eeff56d5253be53946be2a74f4f/WindowsWindows_11_23H2x86_64WindowsWindows_11_23H2x86_64MSVC2022qtci-windows-11_23H2-x86_64-53-400760DebugAndRelease_PinCores_Sccache_StandaloneExamples_UseConfigure_WarningsAreErrors/3f702364ecd296ca972cc63061ee7da868d5c236/build_1734195451/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtactiveqt/tasks/1734195441

      Tested changes (refs/builds/qtci/dev/1734194830):
      https://codereview.qt-project.org/c/qt/qtactiveqt/+/610286/1 Bump version to 6.10.0
      https://codereview.qt-project.org/c/qt/qtactiveqt/+/611718/2 Update dependencies on 'dev' in qt/qtactiveqt

      Attachments

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

        Activity

          People

            owolff Oliver Wolff
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes