fix warning call

This commit is contained in:
Stefan Biereigel 2019-05-17 15:22:39 +02:00
parent 7f5145d758
commit 0cfb66ecbc
2 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,10 @@ std::ostream& operator << (std::ostream&o, const YYLTYPE&loc)
return o;
}
void VLwarn(const char*msg)
{
cerr << yylloc.text << ":" << yylloc.first_line << ": " << msg << endl;
}
void VLerror(const char*msg)
{

View File

@ -59,6 +59,7 @@ extern int VLlex();
extern void VLerror(const char*msg);
extern void VLerror(const YYLTYPE&loc, const char*msg, ...) __attribute__((format(printf,2,3)));
#define yywarn VLwarn
extern void VLwarn(const char*msg);
extern void VLwarn(const YYLTYPE&loc, const char*msg);
extern void destroy_lexor();