1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

eval_intern.h: VAR_INITIALIZED

* eval_intern.h (VAR_INITIALIZED): macro to suppress
  maybe-uninitialized warnings by gcc 4.7 and 4.8.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-04-04 08:34:12 +00:00
parent 9dd0113023
commit e18259424e
5 changed files with 15 additions and 3 deletions

View file

@ -123,6 +123,7 @@ rb_exec_end_proc(void)
exec_end_procs_chain(&end_procs);
}
else {
VAR_INITIALIZED(th);
TH_TMPPOP_TAG();
error_handle(status);
if (!NIL_P(th->errinfo)) errinfo = th->errinfo;