summaryrefslogtreecommitdiff
path: root/include/ruby/st.h
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-01 15:32:08 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-01 15:32:08 +0000
commit6909ea443fee4daadfad78df81ab4577c30b5ace (patch)
tree5b8a56fb9ae9f62e90efbae49f4fbb902aa835da /include/ruby/st.h
parenteb70987c2d1b74704e17dbb4455f1ab565800dd3 (diff)
* include/ruby/st.h (st_table): Added comment why we need __extension__.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/st.h')
-rw-r--r--include/ruby/st.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ruby/st.h b/include/ruby/st.h
index 5627124e39..960b1bde6a 100644
--- a/include/ruby/st.h
+++ b/include/ruby/st.h
@@ -79,6 +79,15 @@ struct st_table {
st_index_t num_bins;
unsigned int entries_packed : 1;
#ifdef __GNUC__
+ /*
+ * C spec says,
+ * A bit-field shall have a type that is a qualified or unqualified
+ * version of _Bool, signed int, unsigned int, or some other
+ * implementation-defined type. It is implementation-defined whether
+ * atomic types are permitted.
+ * In short, long and long long bit-field are implementation-defined
+ * feature. Therefore we want to supress a warning explicitly.
+ */
__extension__
#endif
st_index_t num_entries : ST_INDEX_BITS - 1;