mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Bring in the configure and makeopts jazz for -Wshadow, but don't add it to the
Makefile yet. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@136819 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
14
configure.ac
14
configure.ac
@@ -491,14 +491,24 @@ AC_SUBST(AST_DECLARATION_AFTER_STATEMENT)
|
||||
|
||||
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(
|
||||
AC_LANG_PROGRAM([#include <sys/sysinfo.h>],
|
||||
|
Reference in New Issue
Block a user