mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 16:20:37 +00:00
Add --enable-dev-mode=strict to configure.
Passing -Wshadow to gcc enables shadow warnings. From the gcc manual:
Warn whenever a local variable or type declaration shadows another
variable, parameter, type, or class member (in C++), or whenever a
built-in function is shadowed.
Asterisk will not currently compile with this option set, but a number of bugs
have been discovered by enabling this flag on specific files. The long-term
goal is to eliminate all of the suspect code that causes this warning to be
emitted.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358622 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -343,10 +343,15 @@ AC_ARG_ENABLE([dev-mode],
|
||||
AST_DEVMODE=yes
|
||||
NOISY_BUILD=yes
|
||||
;;
|
||||
strict)
|
||||
AST_DEVMODE=yes
|
||||
AST_DEVMODE_STRICT=yes
|
||||
;;
|
||||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-dev-mode) ;;
|
||||
esac])
|
||||
AC_SUBST(NOISY_BUILD)
|
||||
AC_SUBST(AST_DEVMODE)
|
||||
AC_SUBST(AST_DEVMODE_STRICT)
|
||||
|
||||
AST_CODE_COVERAGE=no
|
||||
AC_ARG_ENABLE([coverage],
|
||||
|
||||
Reference in New Issue
Block a user