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

Warning context lost on Build Issues pane (regression)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 2.3.0
    • Qt Creator 2.3.0
    • None
    • Gentoo Linux
      GCC 4.6.1
      Creator revision: 628a825dc0811f5641a274d5cd0daa80603d0efe (pulled 7/25)
    • f9d72df0d0b5fed01914e2ba3e9127a51e73b8fc

    Description

      The following compiler output:

      In file included from <file named removed>.h:4:0,
      from <file named removed>.h:14,
      from <file named removed>:14:
      <file named removed>.h: In function 'void UnitTest::CheckEqual(UnitTest::TestResults&, const Expected&, const Actual&, const UnitTest::TestDetails&) [with Expected = unsigned int, Actual = int]':
      <file named removed>.cpp:87:10: instantiated from here
      <file named removed>.h:21:5: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      <file named removed>.h: In function 'void UnitTest::CheckEqual(UnitTest::TestResults&, const Expected&, const Actual&, const UnitTest::TestDetails&) [with Expected = int, Actual = unsigned int]':
      <file named removed>.cpp:237:10: instantiated from here
      <file named removed>.h:21:5: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

      Produces the following entries on the build issues pane:

      <file named removed>.h:14: from <file named removed>.h:14,
      <file named removed>.cpp:14: from <file named removed>.cpp:14:
      <file named removed>.h:-1: In function 'void UnitTest::CheckEqual(UnitTest::TestResults&, const Expected&, const Actual&, const UnitTest::TestDetails&) [with Expected = unsigned int, Actual = int]':
      <file named removed>.h:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      <file named removed>.h:-1: In function 'void UnitTest::CheckEqual(UnitTest::TestResults&, const Expected&, const Actual&, const UnitTest::TestDetails&) [with Expected = int, Actual = unsigned int]':
      <file named removed>.h:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

      The "instantiated from here" bit is lost, which is the most important part.

      Attachments

        Activity

          People

            hunger Tobias Hunger
            wongk Kris Wong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: