summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-04-09 13:05:49 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-04-16 15:22:09 (GMT)
commitd7bfacf05545c409943a745a75051839747c87ca (patch)
tree63ef5ddd869804f28be21aecf5f5d650c43518ed /qmake
parent10078e4593c369a460a170bef1bc74a55ba3b2e2 (diff)
downloadQt-d7bfacf05545c409943a745a75051839747c87ca.zip
Qt-d7bfacf05545c409943a745a75051839747c87ca.tar.gz
Qt-d7bfacf05545c409943a745a75051839747c87ca.tar.bz2
remove ability to use break() a block outside any loop
it is a completely bizarre feature which is nowhere documented and no justification for it is provided anywhere. Reviewed-by: mariusSO
Diffstat (limited to 'qmake')
-rw-r--r--qmake/project.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/qmake/project.cpp b/qmake/project.cpp
index 764264f..249ea67 100644
--- a/qmake/project.cpp
+++ b/qmake/project.cpp
@@ -2516,8 +2516,6 @@ QMakeProject::doProjectTest(QString func, QList<QStringList> args_list, QMap<QSt
case T_BREAK:
if(iterator)
iterator->cause_break = true;
- else if(!scope_blocks.isEmpty())
- scope_blocks.top().ignore = true;
else
fprintf(stderr, "%s:%d unexpected break()\n",
parser.file.toLatin1().constData(), parser.line_no);