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

Wasm: unused functions in qtestcase.cpp, wasm framework doesn't build when cross-compiling on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.4.0 Beta1, 6.5.0 Beta1
    • 6.3.0, 6.3.1
    • Testing: qtestlib
    • None
    • MacOS Monterey 12.2
    • WebAssembly
    • 3df23b1fe4 (qt/qtbase/dev) 3df23b1fe4 (qt/tqtc-qtbase/dev) 2531c9b4f3 (qt/qtbase/6.4) 2531c9b4f3 (qt/tqtc-qtbase/6.4)

    Description

      Cross-compilation on Mac w/

      Apple clang version 13.0.0 (clang-1300.0.27.3)
      Target: arm64-apple-darwin21.3.0

      fails as there are unused functions and due to -Werror the compiler is strict about warnings.

      There are some unused functions that are needed for Unix, but not for WASM. The only block that uses these functions is for Unix, but not for emscripten. Since emscripten is treated as a variant of Unix, we still declare & define the unused functions (qtestcase.cpp:126)

       

      Attachments

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

        Activity

          People

            david.skoland David Skoland
            mikolaj.boc Mikołaj Boc (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change