--- a/imgtools/romtools/rombuild/r_obey.cpp Mon Sep 13 14:04:04 2010 +0100
+++ b/imgtools/romtools/rombuild/r_obey.cpp Wed Oct 13 16:27:55 2010 +0800
@@ -296,7 +296,7 @@
}
TInt ObeyFileReader::NextLine(TInt aPass, enum EKeyword& aKeyword)
{
-
+ static int warnline = -1;
NextLine:
TInt err = ReadAndParseLine();
if (err == KErrEof)
@@ -346,8 +346,10 @@
aKeyword = k->iKeywordEnum;
return KErrNone;
}
- if (aPass == 1)
+ if (aPass == 1 && iCurrentLine > warnline){
+ warnline = iCurrentLine;
Print(EWarning, "Unknown keyword '%s'. Line %d ignored\n", iWord[0], iCurrentLine);
+ }
goto NextLine;
}