summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
authorMorten Sørvig <morten.sorvig@qt.io>2021-04-22 11:03:48 +0200
committerMorten Sørvig <morten.sorvig@qt.io>2021-04-30 14:01:37 +0200
commitfa11071abfabf7380cda41b4f582e0bfd28a72ba (patch)
treeb8a5eb8664f737a7eaf8b4ba0aa6f0afcbfe0d23 /src/testlib
parent9f3962443ff11d53cb31e6ad37097827e33506d6 (diff)
Exclude unused functions from WASM build
Fix “unused function” warnings. Change-Id: I1d8d1de3c181385769bffc094d6c9e3319e1dc98 Reviewed-by: Lorn Potter <lorn.potter@gmail.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/testlib')
-rw-r--r--src/testlib/qtestcase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp
index 8b66d04fab..395ffce4b2 100644
--- a/src/testlib/qtestcase.cpp
+++ b/src/testlib/qtestcase.cpp
@@ -177,6 +177,7 @@ static bool debuggerPresent()
#endif
}
+#if !defined(Q_OS_WASM)
static bool hasSystemCrashReporter()
{
#if defined(Q_OS_MACOS)
@@ -243,6 +244,7 @@ static void stackTrace()
fprintf(stderr, "=== End of stack trace ===\n");
#endif
}
+#endif // !Q_OS_WASM
static bool installCoverageTool(const char * appname, const char * testname)
{