From 75ce78429ee220349e3e01aa874e918e1eb1745f Mon Sep 17 00:00:00 2001 From: kosaki Date: Tue, 6 Apr 2010 14:07:06 +0000 Subject: * vm_core.h: Introduce UNINITIALIZED_VAR() macro. * thread.c (do_select): Use UNINITIALIZED_VAR() instead FAKE_FD_ZERO(). Also, remove FAKE_FD_ZERO completely. [Feature #3018] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index 7bf199b68a..b5c1bf0ad9 100644 --- a/vm_core.h +++ b/vm_core.h @@ -106,6 +106,12 @@ #define UNLIKELY(x) (x) #endif /* __GNUC__ >= 3 */ +#if __GNUC__ >= 3 +#define UNINITIALIZED_VAR(x) x = x +#else +#define UNINITIALIZED_VAR(x) x +#endif + typedef unsigned long rb_num_t; /* iseq data type */ -- cgit v1.2.3