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;
|
||||
}
|
||||
|
||||
if (offset >= size)
|
||||
if (offset >= quint64(size))
|
||||
return OpenResult::CannotHandle;
|
||||
|
||||
setFilePath(filePath);
|
||||
|
@@ -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");
|
||||
|
@@ -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 |
|
||||
|
@@ -418,6 +418,7 @@ Environment IDevice::systemEnvironment() const
|
||||
|
||||
qint64 IDevice::fileSize(const FilePath &filePath) const
|
||||
{
|
||||
Q_UNUSED(filePath)
|
||||
QTC_CHECK(false);
|
||||
return -1;
|
||||
}
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user