From 1c9696b68e17af092f849717bbe8822e5f7441cf Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 21 Sep 2021 17:18:00 +0800 Subject: [PATCH] Suppress function unused warning --- src/base/preferences.cpp | 2 ++ src/base/preferences.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/base/preferences.cpp b/src/base/preferences.cpp index 180c40dd4..d9084d361 100644 --- a/src/base/preferences.cpp +++ b/src/base/preferences.cpp @@ -61,12 +61,14 @@ namespace { +#ifdef Q_OS_WIN QString makeProfileID(const QString &profilePath, const QString &profileName) { return profilePath.isEmpty() ? profileName : profileName + QLatin1Char('@') + Utils::Fs::toValidFileSystemName(profilePath, false, {}); } +#endif } Preferences *Preferences::m_instance = nullptr; diff --git a/src/base/preferences.h b/src/base/preferences.h index ff8263ecf..c822cfb33 100644 --- a/src/base/preferences.h +++ b/src/base/preferences.h @@ -30,6 +30,7 @@ #pragma once #include +#include #include #include "base/utils/net.h"