Beta Shell
v2.0 ยท web2.us.cloudlogin.co
[FM]
[CMD]
[PHP]
[DB]
[INFO]
[SEC]
File Manager
~
/
usr
/
local
/
rvm
/
src
/
rvm
/
patches
/
ruby
/
2.5.0
Upload
4 items
Name
Size
Perms
Modified
Actions
[ .. / .. ]
libressl_2_7.patch
567 B
-rw-rw-r--
2021-01-15 18:41:29
Edit
Del
prelude_gcc_diagnostic.patch
729 B
-rw-rw-r--
2021-01-15 18:41:29
Edit
Del
Editing: prelude_gcc_diagnostic.patch
(729 B)
Path: /usr/local/rvm/src/rvm/patches/ruby/2.5.0/prelude_gcc_diagnostic.patch
Back
diff --git a/template/prelude.c.tmpl b/template/prelude.c.tmpl index 11ec71f575..3cf74eda12 100644 --- a/template/prelude.c.tmpl +++ b/template/prelude.c.tmpl @@ -139,7 +139,7 @@ prelude_prefix_path(VALUE self) % unless preludes.empty? #define PRELUDE_STR(n) rb_usascii_str_new_static(prelude_##n.L0, sizeof(prelude_##n)) -#ifdef __GNUC__ +#if defined __GNUC__ && __GNUC__ >= 5 # pragma GCC diagnostic push # pragma GCC diagnostic error "-Wmissing-field-initializers" #endif @@ -169,7 +169,7 @@ prelude_eval(VALUE code, VALUE name, int line) NULL, ISEQ_TYPE_TOP, &optimization)); rb_ast_dispose(ast); } -#ifdef __GNUC__ +#if defined __GNUC__ && __GNUC__ >= 5 # pragma GCC diagnostic pop #endif % end