Skip to content
Snippets Groups Projects
Commit b410b406 authored by Botond Baranyi's avatar Botond Baranyi
Browse files

Disabled OOP compiler option for the release


Change-Id: I08adccdcce44bf6c0ccaec7c84bf0bb8f3bdd73d
Signed-off-by: default avatarBotond Baranyi <botond.baranyi@ericsson.com>
parent 56d72a57
No related branches found
No related tags found
No related merge requests found
......@@ -682,7 +682,10 @@ int main(int argc, char *argv[])
break;
case 'k':
SET_FLAG(k);
oop_features = TRUE;
//oop_features = TRUE;
// disabled for the release
errflag = true;
print_usage = true;
break;
case 'K':
SET_FLAG(K);
......
......@@ -563,9 +563,9 @@ class {
RETURN(ClassKeyword);
}
else {
Location loc(infile, yylloc);
/*Location loc(infile, yylloc);
loc.warning("Keyword 'class' is treated as an identifier. Activate "
"compiler option '-k' to use object-oriented features.");
"compiler option '-k' to use object-oriented features.");*/
yylval.id = new Identifier(Identifier::ID_TTCN, string(yyleng, yytext));
RETURN_LVAL(IDentifier);
}
......@@ -575,9 +575,9 @@ finally {
RETURN(FinallyKeyword);
}
else {
Location loc(infile, yylloc);
/*Location loc(infile, yylloc);
loc.warning("Keyword 'finally' is treated as an identifier. Activate "
"compiler option '-k' to use object-oriented features.");
"compiler option '-k' to use object-oriented features.");*/
yylval.id = new Identifier(Identifier::ID_TTCN, string(yyleng, yytext));
RETURN_LVAL(IDentifier);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment