ruby-changes:37329
From: nobu <ko1@a...>
Date: Mon, 26 Jan 2015 16:20:44 +0900 (JST)
Subject: [ruby-changes:37329] nobu:r49410 (trunk): configure.in: -Wno-maybe-uninitialized
nobu 2015-01-26 16:20:34 +0900 (Mon, 26 Jan 2015) New Revision: 49410 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49410 Log: configure.in: -Wno-maybe-uninitialized * configure.in (warnflags): add -Wno-maybe-uninitialized for gcc 5, to suppress false warnings in thread.c:do_select(). Modified files: trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 49409) +++ configure.in (revision 49410) @@ -791,6 +791,9 @@ if test "$GCC:${warnflags+set}:no" = yes https://github.com/ruby/ruby/blob/trunk/configure.in#L791 else extra_warning= fi + if test $gcc_major -eq 5; then + extra_warning="$extra_warning -Wno-maybe-uninitialized" + fi for wflag in -Wno-unused-parameter -Wno-parentheses -Wno-long-long \ -Wno-missing-field-initializers \ -Wunused-variable \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/