Fix some compiler warnings

Change-Id: Ibc354e7a8d0342eb12b2b0f9b2c630d15422f22a
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2021-08-18 15:44:30 +02:00
parent 27708158db
commit c3d9293004
5 changed files with 5 additions and 3 deletions

View File

@@ -280,7 +280,7 @@ public:
return OpenResult::CannotHandle;
}
if (offset >= size)
if (offset >= quint64(size))
return OpenResult::CannotHandle;
setFilePath(filePath);

View File

@@ -179,8 +179,8 @@ void addCdbOptionPages(QList<Core::IOptionsPage *> *opts)
#define QT_CREATOR_CDB_EXT "qtcreatorcdbext"
CdbEngine::CdbEngine() :
m_process(ProcessMode::Writer),
m_tokenPrefix("<token>"),
m_process(ProcessMode::Writer),
m_extensionCommandPrefix("!" QT_CREATOR_CDB_EXT ".")
{
setObjectName("CdbEngine");

View File

@@ -117,6 +117,7 @@ bool MercurialClient::synchronousClone(const FilePath &workingDirectory,
const QString &dstLocation,
const QStringList &extraOptions)
{
Q_UNUSED(srcLocation)
Q_UNUSED(extraOptions)
const unsigned flags = VcsCommand::SshPasswordPrompt |
VcsCommand::ShowStdOut |

View File

@@ -418,6 +418,7 @@ Environment IDevice::systemEnvironment() const
qint64 IDevice::fileSize(const FilePath &filePath) const
{
Q_UNUSED(filePath)
QTC_CHECK(false);
return -1;
}

View File

@@ -481,10 +481,10 @@ public:
, functionDeclarations{std::move(functionDeclarations)}
, signalDeclarations{std::move(signalDeclarations)}
, enumerationDeclarations{std::move(enumerationDeclarations)}
, import{std::move(import)}
, accessSemantics{accessSemantics}
, sourceId{sourceId}
, typeId{typeId}
, import{std::move(import)}
{}
explicit Type(Utils::SmallStringView importName,