From fa11071abfabf7380cda41b4f582e0bfd28a72ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20S=C3=B8rvig?= Date: Thu, 22 Apr 2021 11:03:48 +0200 Subject: Exclude unused functions from WASM build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix “unused function” warnings. Change-Id: I1d8d1de3c181385769bffc094d6c9e3319e1dc98 Reviewed-by: Lorn Potter Reviewed-by: Edward Welbourne --- src/testlib/qtestcase.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/testlib') 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) { -- cgit v1.2.3