[asterisk-commits] seanbright: trunk r136819 - in /trunk: configure configure.ac makeopts.in

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Aug 8 13:19:34 CDT 2008


Author: seanbright
Date: Fri Aug  8 13:19:33 2008
New Revision: 136819

URL: http://svn.digium.com/view/asterisk?view=rev&rev=136819
Log:
Bring in the configure and makeopts jazz for -Wshadow, but don't add it to the
Makefile yet.

Modified:
    trunk/configure
    trunk/configure.ac
    trunk/makeopts.in

Modified: trunk/configure.ac
URL: http://svn.digium.com/view/asterisk/trunk/configure.ac?view=diff&rev=136819&r1=136818&r2=136819
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Fri Aug  8 13:19:33 2008
@@ -491,13 +491,23 @@
 
 AC_MSG_CHECKING(for -fno-strict-overflow)
 if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
-   AC_MSG_RESULT(yes)
-   AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
+	AC_MSG_RESULT(yes)
+	AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
 else
 	AC_MSG_RESULT(no)
 	AST_NO_STRICT_OVERFLOW=
 fi
 AC_SUBST(AST_NO_STRICT_OVERFLOW)
+
+AC_MSG_CHECKING(for -Wshadow)
+if $(${CC} -Wshadow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
+	AC_MSG_RESULT(yes)
+	AST_SHADOW_WARNINGS=-Wshadow
+else
+	AC_MSG_RESULT(no)
+	AST_SHADOW_WARNINGS=
+fi
+AC_SUBST(AST_SHADOW_WARNINGS)
 
 AC_MSG_CHECKING(for sysinfo)
 AC_LINK_IFELSE(

Modified: trunk/makeopts.in
URL: http://svn.digium.com/view/asterisk/trunk/makeopts.in?view=diff&rev=136819&r1=136818&r2=136819
==============================================================================
--- trunk/makeopts.in (original)
+++ trunk/makeopts.in Fri Aug  8 13:19:33 2008
@@ -65,6 +65,7 @@
 
 AST_DECLARATION_AFTER_STATEMENT=@AST_DECLARATION_AFTER_STATEMENT@
 AST_NO_STRICT_OVERFLOW=@AST_NO_STRICT_OVERFLOW@
+AST_SHADOW_WARNINGS=@AST_SHADOW_WARNINGS@
 
 ASOUND_INCLUDE=@ALSA_INCLUDE@
 ASOUND_LIB=@ALSA_LIB@




More information about the asterisk-commits mailing list