make ifnone-error a warning

This commit is contained in:
Stefan Biereigel 2019-05-17 16:17:08 +02:00
parent 0cfb66ecbc
commit c6cf83a13a
2 changed files with 4 additions and 3 deletions

View File

@ -5752,7 +5752,7 @@ specify_item
pform_module_specify_path(tmp);
}
| K_ifnone specify_edge_path_decl ';'
{ yyerror(@1, "Sorry: ifnone with an edge-sensitive path is "
{ yywarn(@1, "Sorry: ifnone with an edge-sensitive path is "
"not supported.");
yyerrok;
}

View File

@ -41,13 +41,14 @@ std::ostream& operator << (std::ostream&o, const YYLTYPE&loc)
void VLwarn(const char*msg)
{
cerr << yylloc.text << ":" << yylloc.first_line << ": " << msg << endl;
warn_count += 1;
cerr << yylloc.text << ":" << yylloc.first_line << ": Warning: " << msg << endl;
}
void VLerror(const char*msg)
{
error_count += 1;
cerr << yylloc.text << ":" << yylloc.first_line << ": " << msg << endl;
cerr << yylloc.text << ":" << yylloc.first_line << ": Error: " << msg << endl;
}
void VLerror(const YYLTYPE&loc, const char*msg, ...)