Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-2048

"Function must return value" compile error parsed as warning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 2.0.0
    • None
    • WinXP 32, msvc 2008
    • ade1762af3b7a07a4a4cb9588fd96994842a7c69

      My code has a function which should but does not return a value. MSVC reports that as "error C4716: 'fooBar' : must return a value". cl.exe returns an exit code "2". Creator understands that the build fails and shows a red build progress bar.

      But the build issues list shows a warning for the missing return. That is wrong.
      See attached screenshot.

      This is what cl.exe pumps into stdout:

      qmlstandalone\main.cpp(54) : error C4716: 'findUnresolvedModule' : must return a value

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

            hunger Tobias Hunger
            portale Alessandro Portale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes