forked from qt-creator/qt-creator
Quieten gcc compiler warnings.
This commit is contained in:
@@ -302,6 +302,8 @@ void JSDebuggerAgent::exceptionThrow(qint64 scriptId,
|
||||
bool hasHandler)
|
||||
{
|
||||
Q_UNUSED(scriptId);
|
||||
Q_UNUSED(exception);
|
||||
Q_UNUSED(hasHandler);
|
||||
// qDebug() << Q_FUNC_INFO << exception.toString() << hasHandler;
|
||||
#if 0 //sometimes, we get exceptions that we should just ignore.
|
||||
if (!hasHandler && state != Stopped)
|
||||
|
||||
@@ -105,10 +105,10 @@ using namespace TextEditor;
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
||||
DebuggerStartParameters::DebuggerStartParameters()
|
||||
: attachPID(-1),
|
||||
useTerminal(false),
|
||||
DebuggerStartParameters::DebuggerStartParameters() :
|
||||
isSnapshot(false),
|
||||
attachPID(-1),
|
||||
useTerminal(false),
|
||||
breakAtMain(false),
|
||||
qmlServerAddress("127.0.0.1"),
|
||||
qmlServerPort(0),
|
||||
|
||||
@@ -124,10 +124,10 @@ bool OpenPagesSwitcher::eventFilter(QObject *object, QEvent *event)
|
||||
emit setCurrentPage(m_openPagesWidget->currentIndex());
|
||||
return true;
|
||||
}
|
||||
|
||||
Qt::KeyboardModifier modifier = Qt::ControlModifier;
|
||||
#ifdef Q_WS_MAC
|
||||
modifier = Qt::AltModifier;
|
||||
const Qt::KeyboardModifier modifier = Qt::AltModifier;
|
||||
#else
|
||||
const Qt::KeyboardModifier modifier = Qt::ControlModifier;
|
||||
#endif
|
||||
if (key == Qt::Key_Backtab
|
||||
&& (ke->modifiers() == (modifier | Qt::ShiftModifier)))
|
||||
|
||||
@@ -66,7 +66,7 @@ void OutputParserTester::testParsing(const QString &lines,
|
||||
}
|
||||
// first disconnect ourselves from the end of the parser chain again
|
||||
IOutputParser * parser = this;
|
||||
while (parser = parser->childParser()) {
|
||||
while ( (parser = parser->childParser()) ) {
|
||||
if (parser->childParser() == this) {
|
||||
childParser()->takeOutputParserChain();
|
||||
break;
|
||||
|
||||
@@ -727,7 +727,7 @@ void QmlOutlineModel::moveObjectMember(AST::UiObjectMember *toMove,
|
||||
} else {
|
||||
*addedRange = rewriter.addObject(arrayBinding, strToMove);
|
||||
}
|
||||
} else if (AST::UiObjectBinding *objectBinding = AST::cast<AST::UiObjectBinding*>(newParent)) {
|
||||
} else if (AST::cast<AST::UiObjectBinding*>(newParent)) {
|
||||
qDebug() << "TODO: Reparent to UiObjectBinding";
|
||||
return;
|
||||
// target is a property
|
||||
|
||||
@@ -634,7 +634,8 @@ static QList<GeneratedFileInfo> updateableFiles(const QString &mainProFile)
|
||||
{GeneratedFileInfo::AppViewerCppFile, appViewerHFileName}
|
||||
};
|
||||
const QFileInfo mainProFileInfo(mainProFile);
|
||||
for (int i = 0; i < sizeof files / sizeof files[0]; ++i) {
|
||||
const int size = sizeof(files) / sizeof(files[0]);
|
||||
for (int i = 0; i < size; ++i) {
|
||||
const QString fileName = mainProFileInfo.dir().absolutePath()
|
||||
+ QLatin1Char('/') + appViewerOriginsSubDir + files[i].fileName;
|
||||
if (!QFile::exists(fileName))
|
||||
|
||||
@@ -48,7 +48,7 @@ LineNumberFilter::LineNumberFilter(QObject *parent)
|
||||
setIncludedByDefault(true);
|
||||
}
|
||||
|
||||
QList<FilterEntry> LineNumberFilter::matchesFor(QFutureInterface<Locator::FilterEntry> &future, const QString &entry)
|
||||
QList<FilterEntry> LineNumberFilter::matchesFor(QFutureInterface<Locator::FilterEntry> &, const QString &entry)
|
||||
{
|
||||
bool ok;
|
||||
QList<FilterEntry> value;
|
||||
|
||||
Reference in New Issue
Block a user