зеркало из https://github.com/github/ruby.git
eval.c: suppress a warning
* eval.c (setup_exception): suppress a "clobbered" warning by gcc 4.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
8467d86f8a
Коммит
e204d7ebd8
2
eval.c
2
eval.c
|
@ -515,7 +515,7 @@ setup_exception(rb_thread_t *th, int tag, volatile VALUE mesg, VALUE cause)
|
||||||
PUSH_TAG();
|
PUSH_TAG();
|
||||||
if ((status = EXEC_TAG()) == 0) {
|
if ((status = EXEC_TAG()) == 0) {
|
||||||
th->errinfo = Qnil;
|
th->errinfo = Qnil;
|
||||||
e = rb_obj_as_string(e);
|
e = rb_obj_as_string(mesg);
|
||||||
th->errinfo = mesg;
|
th->errinfo = mesg;
|
||||||
if (file && line) {
|
if (file && line) {
|
||||||
warn_printf("Exception `%"PRIsVALUE"' at %s:%d - %"PRIsVALUE"\n",
|
warn_printf("Exception `%"PRIsVALUE"' at %s:%d - %"PRIsVALUE"\n",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче