зеркало из https://github.com/github/ruby.git
spec/ruby/optional/capi/ext: must support GCC 5
What a silly bug.
This commit is contained in:
Родитель
b0f0120267
Коммит
f752382688
|
@ -151,7 +151,7 @@ static VALUE object_specs_rb_obj_method(VALUE self, VALUE obj, VALUE method) {
|
|||
return rb_obj_method(obj, method);
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) && (__GNUC__ > 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
|
||||
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#elif defined(__clang__) && defined(__has_warning)
|
||||
|
@ -165,7 +165,7 @@ static VALUE object_spec_rb_obj_taint(VALUE self, VALUE obj) {
|
|||
return rb_obj_taint(obj);
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) && (__GNUC__ > 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
|
||||
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
|
||||
# pragma GCC diagnostic pop
|
||||
#elif defined(__clang__) && defined(__has_warning)
|
||||
# if __has_warning("-Wdeprecated-declarations")
|
||||
|
|
|
@ -251,7 +251,7 @@ VALUE string_spec_rb_str_new5(VALUE self, VALUE str, VALUE ptr, VALUE len) {
|
|||
return rb_str_new5(str, RSTRING_PTR(ptr), FIX2INT(len));
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) && (__GNUC__ > 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
|
||||
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#elif defined(__clang__) && defined(__has_warning)
|
||||
|
@ -269,7 +269,7 @@ VALUE string_spec_rb_tainted_str_new2(VALUE self, VALUE str) {
|
|||
return rb_tainted_str_new2(RSTRING_PTR(str));
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) && (__GNUC__ > 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
|
||||
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
|
||||
# pragma GCC diagnostic pop
|
||||
#elif defined(__clang__) && defined(__has_warning)
|
||||
# if __has_warning("-Wdeprecated-declarations")
|
||||
|
|
Загрузка…
Ссылка в новой задаче