mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
load.c: suppress warning
* load.c (rb_load_internal): suppress clobbered-by-longjmp warning by gcc 4.4. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
afb03d1646
commit
d9119160be
1 changed files with 2 additions and 2 deletions
4
load.c
4
load.c
|
@ -567,7 +567,7 @@ rb_load_internal(VALUE fname, int wrap)
|
||||||
volatile VALUE self = th->top_self;
|
volatile VALUE self = th->top_self;
|
||||||
volatile int loaded = FALSE;
|
volatile int loaded = FALSE;
|
||||||
volatile int mild_compile_error;
|
volatile int mild_compile_error;
|
||||||
#ifndef __GNUC__
|
#if !defined __GNUC__ || (__GNUC__ == 4 && __GNUC_MINOR__ == 4)
|
||||||
rb_thread_t *volatile th0 = th;
|
rb_thread_t *volatile th0 = th;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -599,7 +599,7 @@ rb_load_internal(VALUE fname, int wrap)
|
||||||
}
|
}
|
||||||
POP_TAG();
|
POP_TAG();
|
||||||
|
|
||||||
#ifndef __GNUC__
|
#if !defined __GNUC__ || (__GNUC__ == 4 && __GNUC_MINOR__ == 4)
|
||||||
th = th0;
|
th = th0;
|
||||||
fname = RB_GC_GUARD(fname);
|
fname = RB_GC_GUARD(fname);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue