path: root/cont.c
diff options
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-02 06:41:39 (GMT)
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-02 06:41:39 (GMT)
commitb4b0e8bd0be3f9e44f453bdc7b139cee9bc7e87a (patch)
treed3a6413d67c638ef2036a41f9eaadbf44c35e77f /cont.c
parent035db929d14d2580b42e820d324880af96c9cc14 (diff)
suppress warning for clang
In this function, "volatile" is specified twice in macro-expanded `VAR_INITIALIZED(cont)` part. That is a problem in fact. However I don't want to touch this line because it is already a messy workaround for clang SEGV. Let me just ignore. git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
1 files changed, 7 insertions, 0 deletions
diff --git a/cont.c b/cont.c
index 9556a32..82e2340 100644
--- a/cont.c
+++ b/cont.c
@@ -590,6 +590,10 @@ show_vm_pcs(const rb_control_frame_t *cfp,
+#ifdef __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wduplicate-decl-specifier"
static VALUE
cont_capture(volatile int *volatile stat)
@@ -652,6 +656,9 @@ cont_capture(volatile int *volatile stat)
return contval;
+#ifdef __clang__
+#pragma clang diagnostic pop
static inline void
fiber_restore_thread(rb_thread_t *th, rb_fiber_t *fib)