From bb4d281b86bdbb53291bd1ddf41e5ae0713ab608 Mon Sep 17 00:00:00 2001
From: SeeLook <seelook@gmail.com>
Date: Sun, 3 May 2020 16:00:39 +0200
Subject: [PATCH] [Android] Mute clang warning, log wizard launch time

---
 src/main.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main.cpp b/src/main.cpp
index 9d32b8dd9..473dbb94b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -151,8 +151,12 @@ int main(int argc, char *argv[])
       nooObj->setQmlEngine(e);
       e->load(QUrl(QStringLiteral("qrc:/wizard/Wizard.qml")));
       if (firstLoop) {
+#if defined (Q_OS_ANDROID)
+        qDebug() << "Nootka wizard launch time" << startElapsed.nsecsElapsed() / 1000000.0 << " [ms]";
+#else
         QTextStream o(stdout);
         o << "\033[01;35m Nootka wizard launch time: " << startElapsed.nsecsElapsed() / 1000000.0 << " [ms]\033[01;00m\n";
+#endif
       }
       exitCode = a->exec();
       e->deleteLater(); // Android crashes without a delayed destroy
-- 
GitLab