autoconf: Comment out the forced -Wunused-but-set-variable since not all module…

autoconf: Comment out the forced -Wunused-but-set-variable since not all module could be tested.  List of module I couldn't compile is in the comment.  Please all the different module maintainer check your module for this.  Thanks
上级 0b780702
...@@ -583,16 +583,20 @@ if test x"$ac_cv_gcc_declaration_after_statement" = xyes; then ...@@ -583,16 +583,20 @@ if test x"$ac_cv_gcc_declaration_after_statement" = xyes; then
fi fi
CFLAGS="$saved_CFLAGS" CFLAGS="$saved_CFLAGS"
saved_CFLAGS="$CFLAGS" # Tested and fixed lot of modules, but some are untested. Will be added back when the core team decide it ready
AC_CACHE_CHECK([whether compiler supports -Wunused-but-set-variable], [ac_cv_gcc_unused_but_set_variable], [ # Untested modules : mod_osp mod_soundtouch mod_sangoma_codec mod_dingaling mod_opal mod_skypopen mod_h323 mod_khomp
CFLAGS="$CFLAGS -Wunused-but-set-variable" # mod_unimrcp mod_cepstral mod_erlang_event mod_snmp mod_perl mod_java mod_managed
AC_TRY_COMPILE([],[return 0;],[ac_cv_gcc_unused_but_set_variable=yes],[ac_cv_gcc_unused_but_set_variable=no]) #
]) #saved_CFLAGS="$CFLAGS"
AC_MSG_RESULT($ac_cv_gcc_unused_but_set_variable) #AC_CACHE_CHECK([whether compiler supports -Wunused-but-set-variable], [ac_cv_gcc_unused_but_set_variable], [
if test x"$ac_cv_gcc_unused_but_set_variable" = xyes; then #CFLAGS="$CFLAGS -Wunused-but-set-variable"
APR_ADDTO(SWITCH_ANSI_CFLAGS, -Wunused-but-set-variable) #AC_TRY_COMPILE([],[return 0;],[ac_cv_gcc_unused_but_set_variable=yes],[ac_cv_gcc_unused_but_set_variable=no])
fi #])
CFLAGS="$saved_CFLAGS" #AC_MSG_RESULT($ac_cv_gcc_unused_but_set_variable)
#if test x"$ac_cv_gcc_unused_but_set_variable" = xyes; then
# APR_ADDTO(SWITCH_ANSI_CFLAGS, -Wunused-but-set-variable)
#fi
#CFLAGS="$saved_CFLAGS"
AC_C_BIGENDIAN(AC_DEFINE([SWITCH_BYTE_ORDER],__BIG_ENDIAN,[Big Endian]),AC_DEFINE([SWITCH_BYTE_ORDER],__LITTLE_ENDIAN,[Little Endian])) AC_C_BIGENDIAN(AC_DEFINE([SWITCH_BYTE_ORDER],__BIG_ENDIAN,[Big Endian]),AC_DEFINE([SWITCH_BYTE_ORDER],__LITTLE_ENDIAN,[Little Endian]))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论