diff --git a/parse.y b/parse.y index 76947fd03..510ccd734 100644 --- a/parse.y +++ b/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; } diff --git a/parse_misc.cc b/parse_misc.cc index 6f636296e..cd63a68a5 100644 --- a/parse_misc.cc +++ b/parse_misc.cc @@ -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, ...)