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

QtTest doesn't respect the -no-warnings-are-errors flags with clang

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • 5.11.0
    • None
    • clang 6.0, Linux 4.9 Debian Stretch

      {code:java}
      ./configure -platform linux-clang -opensource -debug -developer-build -no-directfb -nomake examples -nomake tests -confirm-license -no-warnings-are-errors
      {code}

    Description

      In file included from ../../include/QtTest/../../src/testlib/qtest_gui.h:53:
      In file included from ../../include/QtTest/qtestevent.h:1:
      ../../include/QtTest/../../src/testlib/qtestevent.h:119:9: error: private field '_delay' is not used
       [-Werror,-Wunused-private-field]
       int _delay;
       ^
      ../../include/QtTest/../../src/testlib/qtestevent.h:138:24: error: private field '_action' is not used
       [-Werror,-Wunused-private-field]
       QTest::MouseAction _action;
       ^
      ../../include/QtTest/../../src/testlib/qtestevent.h:139:21: error: private field '_button' is not used
       [-Werror,-Wunused-private-field]
       Qt::MouseButton _button;
       ^
      ../../include/QtTest/../../src/testlib/qtestevent.h:142:9: error: private field '_delay' is not used
       [-Werror,-Wunused-private-field]
       int _delay;
       ^
      ../../include/QtTest/../../src/testlib/qtestevent.h:158:9: error: private field '_delay' is not used
       [-Werror,-Wunused-private-field]
       int _delay;
       ^

      Another solution would be not to build the testlib, but when I do, qmltest fails to build. I don't think it's possible to remove qmltest from the build looking at the .pro it doesn't seem conditional.

      qtHaveModule(gui):qtConfig(animation) {
          SUBDIRS += \
              quick \
              qmltest
      

      Attachments

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

        Activity

          People

            macadder Jason McDonald
            roussinm Maxime Roussin-BĂ©langer
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes