diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-02-28 19:54:45 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-02-28 19:54:45 +0900 |
| commit | 8c04ba2222e277f55ffc131480bc6e58ec73c1dc (patch) | |
| tree | a8e8d976c121310c9aa97ec6dde42d43f8eb6c81 | |
| parent | d25b9c9d0ef6498dd9ae58fcf6bb9b438cfcccb0 (diff) | |
| download | mruby-8c04ba2222e277f55ffc131480bc6e58ec73c1dc.tar.gz mruby-8c04ba2222e277f55ffc131480bc6e58ec73c1dc.zip | |
Add `warning: ` prefix to parser warning message
| -rw-r--r-- | mrbgems/mruby-compiler/core/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index e281a5a6d..0aabc2f34 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -3708,10 +3708,10 @@ yywarn(parser_state *p, const char *s) if (! p->capture_errors) { #ifndef MRB_DISABLE_STDIO if (p->filename) { - fprintf(stderr, "%s:%d:%d: %s\n", p->filename, p->lineno, p->column, s); + fprintf(stderr, "%s:%d:%d: warning: %s\n", p->filename, p->lineno, p->column, s); } else { - fprintf(stderr, "line %d:%d: %s\n", p->lineno, p->column, s); + fprintf(stderr, "line %d:%d: warning: %s\n", p->lineno, p->column, s); } #endif } |
