fix warning call
This commit is contained in:
parent
7f5145d758
commit
0cfb66ecbc
|
|
@ -39,6 +39,10 @@ std::ostream& operator << (std::ostream&o, const YYLTYPE&loc)
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void VLwarn(const char*msg)
|
||||||
|
{
|
||||||
|
cerr << yylloc.text << ":" << yylloc.first_line << ": " << msg << endl;
|
||||||
|
}
|
||||||
|
|
||||||
void VLerror(const char*msg)
|
void VLerror(const char*msg)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@ extern int VLlex();
|
||||||
extern void VLerror(const char*msg);
|
extern void VLerror(const char*msg);
|
||||||
extern void VLerror(const YYLTYPE&loc, const char*msg, ...) __attribute__((format(printf,2,3)));
|
extern void VLerror(const YYLTYPE&loc, const char*msg, ...) __attribute__((format(printf,2,3)));
|
||||||
#define yywarn VLwarn
|
#define yywarn VLwarn
|
||||||
|
extern void VLwarn(const char*msg);
|
||||||
extern void VLwarn(const YYLTYPE&loc, const char*msg);
|
extern void VLwarn(const YYLTYPE&loc, const char*msg);
|
||||||
|
|
||||||
extern void destroy_lexor();
|
extern void destroy_lexor();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue