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

Unreachable code warning with MSVC2019 with QTestCase class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 6.4.3
    • Testing: qtestlib
    • None
    • Windows
    • cf5da3336 (dev), 139e5b55e (6.5), 4df0132ad (6.6)

    Description

      As our application treats warnings as errors we encouter the following problem with the QTestCase.h file, there is a warning thrown on QTCreator.

      (C:\Qt\6.4.3\msvc2019_64\include\QtTest\qtestcase.h:327: warning: C4702: unreachable code)

       

      Attachments

        1. image-2023-03-28-11-55-21-030.png
          33 kB
          Kevan Vanderstichelen
        2. image-2023-03-30-13-52-02-166.png
          20 kB
          Kevan Vanderstichelen
        3. image-2023-03-30-13-52-29-794.png
          49 kB
          Kevan Vanderstichelen
        4. image-2023-03-30-13-52-32-547.png
          49 kB
          Kevan Vanderstichelen
        5. image-2023-03-30-14-43-33-416.png
          12 kB
          Kevan Vanderstichelen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            kevanvanderstichelen Kevan Vanderstichelen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes