configure.ac: suppress more Sun C warnings.

They are rather annoying than being useful to us.
This commit is contained in:
卜部昌平 2020-08-22 14:12:12 +09:00
parent 331d02038b
commit 2ddc67ffb6

View File

@ -630,8 +630,17 @@ AC_COMPILE_IFELSE([
@%:@if !(defined(__SUNPRO_C)||defined(__SUNPRO_CC)) @%:@if !(defined(__SUNPRO_C)||defined(__SUNPRO_CC))
@%:@error not sunpro @%:@error not sunpro
@%:@endif],[])], [ @%:@endif],[])], [
RUBY_TRY_CFLAGS(-erroff=E_STATEMENT_NOT_REACHED, [ for e in \
RUBY_APPEND_OPTIONS(rb_cv_warnflags, -erroff=E_STATEMENT_NOT_REACHED)])],[]) 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, AC_ARG_WITH(compress-debug-sections,
AS_HELP_STRING([--with-compress-debug-sections=type], AS_HELP_STRING([--with-compress-debug-sections=type],