зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
035db929d1
Коммит
b4b0e8bd0b
7
cont.c
7
cont.c
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче