summaryrefslogtreecommitdiff
path: root/eval_intern.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-28 05:39:45 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-28 05:39:45 (GMT)
commitea9e8fedb3f34be88b97d634e5cf4e61bd05432e (patch)
tree4ab455a6723b3e2a394d7a1dc27c443fa7001dc0 /eval_intern.h
parent391cad0cb3ffed75da78b034d347cbe5b9405a58 (diff)
eval_intern.h: suppress warning by gcc 4.6
* eval_intern.h (VAR_FROM_MEMORY, VAR_INITIALIZED): gcc 4.6 also seems to warn false maybe-uninitialized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_intern.h')
-rw-r--r--eval_intern.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval_intern.h b/eval_intern.h
index eb78a41..508379e 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -137,7 +137,7 @@ LONG WINAPI rb_w32_stack_overflow_handler(struct _EXCEPTION_POINTERS *);
#define PUSH_TAG() TH_PUSH_TAG(GET_THREAD())
#define POP_TAG() TH_POP_TAG()
-#if defined __GNUC__ && __GNUC__ == 4 && (__GNUC_MINOR__ == 7 || __GNUC_MINOR__ == 8)
+#if defined __GNUC__ && __GNUC__ == 4 && (__GNUC_MINOR__ >= 6 && __GNUC_MINOR__ <= 8)
# define VAR_FROM_MEMORY(var) __extension__(*(__typeof__(var) volatile *)&(var))
# define VAR_INITIALIZED(var) ((var) = VAR_FROM_MEMORY(var))
#else