From f76d56e22463e546c2151106dd1b74cbf302c0ab Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 6 Apr 2020 15:29:55 +0800 Subject: [PATCH] Suppress unused variable warning on macOS --- src/gui/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index a12ede08a..55bcc1440 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -118,8 +118,10 @@ namespace // Misc const QString KEY_DOWNLOAD_TRACKER_FAVICON = QStringLiteral(SETTINGS_KEY("DownloadTrackerFavicon")); - const int TIME_TRAY_BALLOON = 5000; const std::chrono::seconds PREVENT_SUSPEND_INTERVAL {60}; +#if !defined(Q_OS_MACOS) + const int TIME_TRAY_BALLOON = 5000; +#endif // just a shortcut inline SettingsStorage *settings()