forked from qt-creator/qt-creator
Fix some compiler warnings
Change-Id: Ibc354e7a8d0342eb12b2b0f9b2c630d15422f22a Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -280,7 +280,7 @@ public:
|
|||||||
return OpenResult::CannotHandle;
|
return OpenResult::CannotHandle;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (offset >= size)
|
if (offset >= quint64(size))
|
||||||
return OpenResult::CannotHandle;
|
return OpenResult::CannotHandle;
|
||||||
|
|
||||||
setFilePath(filePath);
|
setFilePath(filePath);
|
||||||
|
@@ -179,8 +179,8 @@ void addCdbOptionPages(QList<Core::IOptionsPage *> *opts)
|
|||||||
#define QT_CREATOR_CDB_EXT "qtcreatorcdbext"
|
#define QT_CREATOR_CDB_EXT "qtcreatorcdbext"
|
||||||
|
|
||||||
CdbEngine::CdbEngine() :
|
CdbEngine::CdbEngine() :
|
||||||
m_process(ProcessMode::Writer),
|
|
||||||
m_tokenPrefix("<token>"),
|
m_tokenPrefix("<token>"),
|
||||||
|
m_process(ProcessMode::Writer),
|
||||||
m_extensionCommandPrefix("!" QT_CREATOR_CDB_EXT ".")
|
m_extensionCommandPrefix("!" QT_CREATOR_CDB_EXT ".")
|
||||||
{
|
{
|
||||||
setObjectName("CdbEngine");
|
setObjectName("CdbEngine");
|
||||||
|
@@ -117,6 +117,7 @@ bool MercurialClient::synchronousClone(const FilePath &workingDirectory,
|
|||||||
const QString &dstLocation,
|
const QString &dstLocation,
|
||||||
const QStringList &extraOptions)
|
const QStringList &extraOptions)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(srcLocation)
|
||||||
Q_UNUSED(extraOptions)
|
Q_UNUSED(extraOptions)
|
||||||
const unsigned flags = VcsCommand::SshPasswordPrompt |
|
const unsigned flags = VcsCommand::SshPasswordPrompt |
|
||||||
VcsCommand::ShowStdOut |
|
VcsCommand::ShowStdOut |
|
||||||
|
@@ -418,6 +418,7 @@ Environment IDevice::systemEnvironment() const
|
|||||||
|
|
||||||
qint64 IDevice::fileSize(const FilePath &filePath) const
|
qint64 IDevice::fileSize(const FilePath &filePath) const
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(filePath)
|
||||||
QTC_CHECK(false);
|
QTC_CHECK(false);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@@ -481,10 +481,10 @@ public:
|
|||||||
, functionDeclarations{std::move(functionDeclarations)}
|
, functionDeclarations{std::move(functionDeclarations)}
|
||||||
, signalDeclarations{std::move(signalDeclarations)}
|
, signalDeclarations{std::move(signalDeclarations)}
|
||||||
, enumerationDeclarations{std::move(enumerationDeclarations)}
|
, enumerationDeclarations{std::move(enumerationDeclarations)}
|
||||||
|
, import{std::move(import)}
|
||||||
, accessSemantics{accessSemantics}
|
, accessSemantics{accessSemantics}
|
||||||
, sourceId{sourceId}
|
, sourceId{sourceId}
|
||||||
, typeId{typeId}
|
, typeId{typeId}
|
||||||
, import{std::move(import)}
|
|
||||||
{}
|
{}
|
||||||
|
|
||||||
explicit Type(Utils::SmallStringView importName,
|
explicit Type(Utils::SmallStringView importName,
|
||||||
|
Reference in New Issue
Block a user