Project

General

Profile

Bug #14242 ยป ruby-2.5.0-template-prelude.c.tmpl.patch

Patch to fix the issue - yasuhirokimura (Yasuhiro KIMURA), 12/26/2017 01:15 PM

View differences:

template/prelude.c.tmpl 2017-12-26 13:03:26.155026277 +0000
142 142
static void
143 143
prelude_eval(VALUE code, VALUE name, int line)
144 144
{
145
#ifdef __GNUC__
145
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4))
146 146
# pragma GCC diagnostic push
147 147
# pragma GCC diagnostic error "-Wmissing-field-initializers"
148 148
#endif
......
159 159
	FALSE, /* unsigned int coverage_enabled; */
160 160
	0, /* int debug_level; */
161 161
    };
162
#ifdef __GNUC__
162
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4))
163 163
# pragma GCC diagnostic pop
164 164
#endif
165 165