vm.c: suppress warnings
* vm.c (vm_invoke_proc, vm_exec), vm_eval.c (rb_eval_cmd): add volatile to suppress -Wclobbered warnings by gcc 4.9.0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d780d49b9c
commit
17bce7d0c4
4
vm.c
4
vm.c
@ -682,7 +682,7 @@ static VALUE
|
|||||||
vm_invoke_proc(rb_thread_t *th, rb_proc_t *proc, VALUE self, VALUE defined_class,
|
vm_invoke_proc(rb_thread_t *th, rb_proc_t *proc, VALUE self, VALUE defined_class,
|
||||||
int argc, const VALUE *argv, const rb_block_t *blockptr)
|
int argc, const VALUE *argv, const rb_block_t *blockptr)
|
||||||
{
|
{
|
||||||
VALUE val = Qundef;
|
volatile VALUE val = Qundef;
|
||||||
int state;
|
int state;
|
||||||
volatile int stored_safe = th->safe_level;
|
volatile int stored_safe = th->safe_level;
|
||||||
|
|
||||||
@ -1190,7 +1190,7 @@ vm_exec(rb_thread_t *th)
|
|||||||
int state;
|
int state;
|
||||||
VALUE result, err;
|
VALUE result, err;
|
||||||
VALUE initial = 0;
|
VALUE initial = 0;
|
||||||
VALUE *escape_ep = NULL;
|
VALUE *volatile escape_ep = NULL;
|
||||||
|
|
||||||
TH_PUSH_TAG(th);
|
TH_PUSH_TAG(th);
|
||||||
_tag.retval = Qnil;
|
_tag.retval = Qnil;
|
||||||
|
@ -1432,7 +1432,7 @@ VALUE
|
|||||||
rb_eval_cmd(VALUE cmd, VALUE arg, int level)
|
rb_eval_cmd(VALUE cmd, VALUE arg, int level)
|
||||||
{
|
{
|
||||||
int state;
|
int state;
|
||||||
VALUE val = Qnil; /* OK */
|
volatile VALUE val = Qnil; /* OK */
|
||||||
volatile int safe = rb_safe_level();
|
volatile int safe = rb_safe_level();
|
||||||
|
|
||||||
if (OBJ_TAINTED(cmd)) {
|
if (OBJ_TAINTED(cmd)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user