patch 8.2.2437: deprecation warnings with default configuration
Problem: Deprecation warnings with default configuration. Solution: Add -Wno-deprecated-declarations.
This commit is contained in:
2
src/auto/configure
vendored
2
src/auto/configure
vendored
@ -4482,7 +4482,7 @@ with_x_arg="$with_x"
|
||||
|
||||
if test -z "$CFLAGS"; then
|
||||
CFLAGS="-O"
|
||||
test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
|
||||
test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall -Wno-deprecated-declarations"
|
||||
fi
|
||||
if test "$GCC" = yes; then
|
||||
gccversion=`$CC -dumpversion`
|
||||
|
||||
@ -90,7 +90,7 @@ with_x_arg="$with_x"
|
||||
dnl Set default value for CFLAGS if none is defined or it's empty
|
||||
if test -z "$CFLAGS"; then
|
||||
CFLAGS="-O"
|
||||
test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
|
||||
test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall -Wno-deprecated-declarations"
|
||||
fi
|
||||
if test "$GCC" = yes; then
|
||||
dnl method that should work for nearly all versions
|
||||
|
||||
@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2437,
|
||||
/**/
|
||||
2436,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user