зеркало из https://github.com/github/ruby.git
configure: suppress SunPro warning
To this date there is no way for Oracle developer Studio to suppress warnings about unreachable codes (12.6 manual says it implemented __builtin_unreachable "as a no-op to C++. It might be added to C.") There is no way but globally kill the warning.
This commit is contained in:
Родитель
75802bcff1
Коммит
d69c532685
|
@ -576,6 +576,13 @@ AS_CASE(["$GCC:${warnflags+set}:${extra_warnflags:+set}:"],
|
||||||
warnflags=
|
warnflags=
|
||||||
])
|
])
|
||||||
RUBY_TRY_CFLAGS(-Qunused-arguments, [RUBY_APPEND_OPTIONS(rb_cv_wsuppress_flags, -Qunused-arguments)])
|
RUBY_TRY_CFLAGS(-Qunused-arguments, [RUBY_APPEND_OPTIONS(rb_cv_wsuppress_flags, -Qunused-arguments)])
|
||||||
|
AC_COMPILE_IFELSE([
|
||||||
|
AC_LANG_PROGRAM([
|
||||||
|
@%:@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)])],[])
|
||||||
|
|
||||||
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],
|
||||||
|
|
Загрузка…
Ссылка в новой задаче