make ifnone-error a warning
This commit is contained in:
parent
0cfb66ecbc
commit
c6cf83a13a
2
parse.y
2
parse.y
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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, ...)
|
||||
|
|
|
|||
Loading…
Reference in New Issue