From 6bc4e2c6b3890b7a7b5443d4594bfda99e244514 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 20 Apr 2010 20:14:57 +0200 Subject: warn about usage of deprecated variables Reviewed-by: joerg --- qmake/project.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qmake/project.cpp b/qmake/project.cpp index 15286ec..7e8952f 100644 --- a/qmake/project.cpp +++ b/qmake/project.cpp @@ -220,6 +220,11 @@ static QString varMap(const QString &x) ret = "QMAKE_FRAMEWORKPATH"; else if(ret == "QMAKE_FRAMEWORKDIR_FLAGS") ret = "QMAKE_FRAMEWORKPATH_FLAGS"; + else + return ret; + warn_msg(WarnDeprecated, "%s:%d: Variable %s is deprecated; use %s instead.", + parser.file.toLatin1().constData(), parser.line_no, + x.toLatin1().constData(), ret.toLatin1().constData()); return ret; } -- cgit v0.12