forked from qt-creator/qt-creator
Fix various warnings about unused variables and functions
Change-Id: I430b87ab0afa8bf32115d44e8acb94271988d229 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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 {};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user