ruby-changes:62685
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Sat, 22 Aug 2020 14:13:14 +0900 (JST)
Subject: [ruby-changes:62685] 2ddc67ffb6 (master): configure.ac: suppress more Sun C warnings.
https://git.ruby-lang.org/ruby.git/commit/?id=2ddc67ffb6 From 2ddc67ffb6bd62550343db909bf5672d6d523682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Sat, 22 Aug 2020 14:12:12 +0900 Subject: configure.ac: suppress more Sun C warnings. They are rather annoying than being useful to us. diff --git a/configure.ac b/configure.ac index 5f16c12..37b4c53 100644 --- a/configure.ac +++ b/configure.ac @@ -630,8 +630,17 @@ AC_COMPILE_IFELSE([ https://github.com/ruby/ruby/blob/trunk/configure.ac#L630 @%:@if !(defined(__SUNPRO_C)||defined(__SUNPRO_CC)) @%:@error not sunpro @%:@endif],[])], [ - RUBY_TRY_CFLAGS(-erroff=E_STATEMENT_NOT_REACHED, [ - RUBY_APPEND_OPTIONS(rb_cv_warnflags, -erroff=E_STATEMENT_NOT_REACHED)])],[]) + for e in \ + E_STATEMENT_NOT_REACHED \ + E_INIT_SIGN_EXTEND \ + E_INIT_DOES_NOT_FIT \ + E_INITIALIZATION_TYPE_MISMATCH + do + RUBY_TRY_CFLAGS([-erroff=${e}], [ + RUBY_APPEND_OPTIONS(rb_cv_warnflags, [-erroff=${e}]) + ]) + done +]) AC_ARG_WITH(compress-debug-sections, AS_HELP_STRING([--with-compress-debug-sections=type], -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/