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

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.3.0, 6.3.1
    • Fix Version/s: 6.4.0 Beta1, 6.5.0 Beta1
    • Component/s: Testing: qtestlib
    • Labels:
      None
    • Environment:
      MacOS Monterey 12.2
    • Platform/s:
      WebAssembly
    • Commits:
      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

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There is 1 open Gerrit change