mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
Merge "BuildSystem: Really do not pass unknown-warning options to the compiler."
This commit is contained in:
6
configure
vendored
6
configure
vendored
@@ -18690,7 +18690,7 @@ LDFLAGS="${saved_sanitize_LDFLAGS}"
|
|||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wdeclaration-after-statement support" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wdeclaration-after-statement support" >&5
|
||||||
$as_echo_n "checking for -Wdeclaration-after-statement support... " >&6; }
|
$as_echo_n "checking for -Wdeclaration-after-statement support... " >&6; }
|
||||||
if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
|
if $(${CC} -Wdeclaration-after-statement -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
|
AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
|
||||||
@@ -18742,7 +18742,7 @@ fi
|
|||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation" >&5
|
||||||
$as_echo_n "checking for -Wno-format-truncation... " >&6; }
|
$as_echo_n "checking for -Wno-format-truncation... " >&6; }
|
||||||
if $(${CC} -O2 -Wno-format-truncation -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
|
if $(${CC} -Wno-format-truncation -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
AST_NO_FORMAT_TRUNCATION=-Wno-format-truncation
|
AST_NO_FORMAT_TRUNCATION=-Wno-format-truncation
|
||||||
@@ -18755,7 +18755,7 @@ fi
|
|||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wshadow" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wshadow" >&5
|
||||||
$as_echo_n "checking for -Wshadow... " >&6; }
|
$as_echo_n "checking for -Wshadow... " >&6; }
|
||||||
if $(${CC} -Wshadow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
|
if $(${CC} -Wshadow -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
AST_SHADOW_WARNINGS=-Wshadow
|
AST_SHADOW_WARNINGS=-Wshadow
|
||||||
|
@@ -1224,7 +1224,7 @@ LDFLAGS="${saved_sanitize_LDFLAGS}"
|
|||||||
AC_SUBST(AST_UNDEFINED_SANITIZER)
|
AC_SUBST(AST_UNDEFINED_SANITIZER)
|
||||||
|
|
||||||
AC_MSG_CHECKING(for -Wdeclaration-after-statement support)
|
AC_MSG_CHECKING(for -Wdeclaration-after-statement support)
|
||||||
if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
|
if $(${CC} -Wdeclaration-after-statement -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
|
AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
|
||||||
else
|
else
|
||||||
@@ -1264,7 +1264,7 @@ fi
|
|||||||
AC_SUBST(AST_NO_STRICT_OVERFLOW)
|
AC_SUBST(AST_NO_STRICT_OVERFLOW)
|
||||||
|
|
||||||
AC_MSG_CHECKING(for -Wno-format-truncation)
|
AC_MSG_CHECKING(for -Wno-format-truncation)
|
||||||
if $(${CC} -O2 -Wno-format-truncation -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
|
if $(${CC} -Wno-format-truncation -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
AST_NO_FORMAT_TRUNCATION=-Wno-format-truncation
|
AST_NO_FORMAT_TRUNCATION=-Wno-format-truncation
|
||||||
else
|
else
|
||||||
@@ -1274,7 +1274,7 @@ fi
|
|||||||
AC_SUBST(AST_NO_FORMAT_TRUNCATION)
|
AC_SUBST(AST_NO_FORMAT_TRUNCATION)
|
||||||
|
|
||||||
AC_MSG_CHECKING(for -Wshadow)
|
AC_MSG_CHECKING(for -Wshadow)
|
||||||
if $(${CC} -Wshadow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
|
if $(${CC} -Wshadow -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
AST_SHADOW_WARNINGS=-Wshadow
|
AST_SHADOW_WARNINGS=-Wshadow
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user