From 03cbafcf23720229282125323548c14a4e30eba1 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 3 May 2016 13:20:50 +0000 Subject: [PATCH] * configure.in (warnflags): use -std=gnu99 instead of -std=iso9899:1999. [Feature #12336] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ configure.in | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9312462438..833b2a7713 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue May 3 22:19:55 2016 NARUSE, Yui + + * configure.in (warnflags): use -std=gnu99 instead of + -std=iso9899:1999. [Feature #12336] + Tue May 3 22:10:09 2016 NARUSE, Yui * string.c (count_utf8_lead_bytes_with_word): Use __builtin_popcount diff --git a/configure.in b/configure.in index ad8cc988c4..43af2bdced 100644 --- a/configure.in +++ b/configure.in @@ -916,7 +916,7 @@ if test "$GCC" = yes; then ], [ # ANSI (no XCFLAGS because this is C only) - for ansi_options in -std=iso9899:1999 "-ansi -std=iso9899:199409"; do + for ansi_options in -std=gnu99; do RUBY_TRY_CFLAGS(${ansi_options}, [ RUBY_APPEND_OPTIONS(warnflags, ${ansi_options}) RUBY_APPEND_OPTIONS(strict_warnflags, ${ansi_options})