mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
Fix GCC 8 build issues.
This fixes build warnings found by GCC 8. In some cases format truncation is intentional so the warning is just suppressed. ASTERISK-27824 #close Change-Id: I724f146cbddba8b86619d4c4a9931ee877995c84
This commit is contained in:
10
configure.ac
10
configure.ac
@@ -1276,6 +1276,16 @@ else
|
||||
fi
|
||||
AC_SUBST(AST_NO_FORMAT_TRUNCATION)
|
||||
|
||||
AC_MSG_CHECKING(for -Wno-stringop-truncation)
|
||||
if $(${CC} -Wno-stringop-truncation -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
|
||||
AC_MSG_RESULT(yes)
|
||||
AST_NO_STRINGOP_TRUNCATION=-Wno-stringop-truncation
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
AST_NO_STRINGOP_TRUNCATION=
|
||||
fi
|
||||
AC_SUBST(AST_NO_STRINGOP_TRUNCATION)
|
||||
|
||||
AC_MSG_CHECKING(for -Wshadow)
|
||||
if $(${CC} -Wshadow -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
|
||||
AC_MSG_RESULT(yes)
|
||||
|
Reference in New Issue
Block a user