Fix various warnings about unused variables and functions

Change-Id: I430b87ab0afa8bf32115d44e8acb94271988d229
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2021-01-25 18:00:52 +01:00
parent 11d1b8bb4c
commit 7a6aa75032
3 changed files with 14 additions and 0 deletions

View File

@@ -123,6 +123,8 @@ PreprocessedData preprocess(FileApiData &data,
const FilePath &buildDirectory,
QString &errorMessage)
{
Q_UNUSED(errorMessage)
PreprocessedData result;
result.cache = std::move(data.cache); // Make sure this is available, even when nothing else is

View File

@@ -58,6 +58,7 @@ namespace Core {
namespace Internal {
// TODO: move to somewhere in Utils
#ifdef ENABLE_CRASHPAD
static QString formatSize(qint64 size)
{
QStringList units {QObject::tr("Bytes"), QObject::tr("KB"), QObject::tr("MB"),
@@ -72,6 +73,7 @@ static QString formatSize(qint64 size)
return i == 0 ? QString("%0 %1").arg(outputSize).arg(units[i]) // Bytes
: QString("%0 %1").arg(outputSize, 0, 'f', 2).arg(units[i]); // KB, MB, GB, TB
}
#endif // ENABLE_CRASHPAD
class SystemSettingsWidget : public IOptionsPageWidget
{

View File

@@ -72,6 +72,8 @@ void ImageCacheCollector::start(Utils::SmallStringView name,
CaptureCallback captureCallback,
AbortCallback abortCallback)
{
Q_UNUSED(auxiliaryData)
RewriterView rewriterView{RewriterView::Amend, nullptr};
NodeInstanceView nodeInstanceView{m_connectionManager};
@@ -128,6 +130,10 @@ std::pair<QImage, QImage> ImageCacheCollector::createImage(Utils::SmallStringVie
Utils::SmallStringView state,
const ImageCache::AuxiliaryData &auxiliaryData)
{
Q_UNUSED(filePath)
Q_UNUSED(state)
Q_UNUSED(auxiliaryData)
return {};
}
@@ -135,6 +141,10 @@ QIcon ImageCacheCollector::createIcon(Utils::SmallStringView filePath,
Utils::SmallStringView state,
const ImageCache::AuxiliaryData &auxiliaryData)
{
Q_UNUSED(filePath)
Q_UNUSED(state)
Q_UNUSED(auxiliaryData)
return {};
}