diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-02 06:41:39 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-02 06:41:39 +0000 |
commit | b4b0e8bd0be3f9e44f453bdc7b139cee9bc7e87a (patch) | |
tree | d3a6413d67c638ef2036a41f9eaadbf44c35e77f /cont.c | |
parent | 035db929d14d2580b42e820d324880af96c9cc14 (diff) | |
download | ruby-b4b0e8bd0be3f9e44f453bdc7b139cee9bc7e87a.tar.gz |
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://ci.ruby-lang.org/ruby/trunk@61541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
-rw-r--r-- | cont.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -590,6 +590,10 @@ show_vm_pcs(const rb_control_frame_t *cfp, } } #endif +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wduplicate-decl-specifier" +#endif 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 +#endif static inline void fiber_restore_thread(rb_thread_t *th, rb_fiber_t *fib) |