]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
autoconf: Comment out the forced -Wunused-but-set-variable since not all module could...
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Sat, 23 Apr 2011 03:09:40 +0000 (23:09 -0400)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Sat, 23 Apr 2011 03:09:40 +0000 (23:09 -0400)
configure.in

index 1a5f1320a145e2a407a8d7df3c7cb399695431f7..356e4c4705f3ecfc367312fe4f5bc88ad251bf6e 100644 (file)
@@ -583,16 +583,20 @@ if test x"$ac_cv_gcc_declaration_after_statement" = xyes; then
 fi
 CFLAGS="$saved_CFLAGS"
 
-saved_CFLAGS="$CFLAGS"
-AC_CACHE_CHECK([whether compiler supports -Wunused-but-set-variable], [ac_cv_gcc_unused_but_set_variable], [
-CFLAGS="$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])
-])
-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"
+# Tested and fixed lot of modules, but some are untested.  Will be added back when the core team decide it ready
+# Untested modules : mod_osp mod_soundtouch mod_sangoma_codec mod_dingaling mod_opal mod_skypopen mod_h323 mod_khomp 
+#                    mod_unimrcp mod_cepstral mod_erlang_event mod_snmp mod_perl mod_java mod_managed
+#
+#saved_CFLAGS="$CFLAGS"
+#AC_CACHE_CHECK([whether compiler supports -Wunused-but-set-variable], [ac_cv_gcc_unused_but_set_variable], [
+#CFLAGS="$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])
+#])
+#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]))