summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-03-01 06:58:33 +0900
committerGitHub <[email protected]>2019-03-01 06:58:33 +0900
commit48fb239efb19e40c356b9e06a7c34f6bc9d79b22 (patch)
treea8e8d976c121310c9aa97ec6dde42d43f8eb6c81
parentd25b9c9d0ef6498dd9ae58fcf6bb9b438cfcccb0 (diff)
parent8c04ba2222e277f55ffc131480bc6e58ec73c1dc (diff)
downloadmruby-48fb239efb19e40c356b9e06a7c34f6bc9d79b22.tar.gz
mruby-48fb239efb19e40c356b9e06a7c34f6bc9d79b22.zip
Merge pull request #4305 from shuujii/add-warning-prefix-to-parser-warning-message
Add `warning: ` prefix to parser warning message
-rw-r--r--mrbgems/mruby-compiler/core/parse.y4
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
}