From 4d8479b335e92a95b09fdee09309ea0df934cb9e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 31 Jan 2021 14:36:06 +0100 Subject: [PATCH] patch 8.2.2437: deprecation warnings with default configuration Problem: Deprecation warnings with default configuration. Solution: Add -Wno-deprecated-declarations. --- src/auto/configure | 2 +- src/configure.ac | 2 +- src/version.c | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/auto/configure b/src/auto/configure index 9d76f8908..12d8f24f4 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -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` diff --git a/src/configure.ac b/src/configure.ac index e511b3508..630433f78 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -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 diff --git a/src/version.c b/src/version.c index 768b3af20..903f3fd60 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2437, /**/ 2436, /**/ -- 2.50.1