summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-22 01:27:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-22 01:27:17 +0000
commitd9119160be95808c66033424bb89f8865666da7c (patch)
treecba2f2f4533c57a98c11542c5b8946d87c572ddf /load.c
parentafb03d16464599102b65b5d6da8622fa6e25ee1e (diff)
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
Diffstat (limited to 'load.c')
-rw-r--r--load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/load.c b/load.c
index cf7011b4d6..9d95c95fff 100644
--- a/load.c
+++ b/load.c
@@ -567,7 +567,7 @@ rb_load_internal(VALUE fname, int wrap)
volatile VALUE self = th->top_self;
volatile int loaded = FALSE;
volatile int mild_compile_error;
-#ifndef __GNUC__
+#if !defined __GNUC__ || (__GNUC__ == 4 && __GNUC_MINOR__ == 4)
rb_thread_t *volatile th0 = th;
#endif
@@ -599,7 +599,7 @@ rb_load_internal(VALUE fname, int wrap)
}
POP_TAG();
-#ifndef __GNUC__
+#if !defined __GNUC__ || (__GNUC__ == 4 && __GNUC_MINOR__ == 4)
th = th0;
fname = RB_GC_GUARD(fname);
#endif