]> granicus.if.org Git - vim/commitdiff
patch 8.2.2437: deprecation warnings with default configuration v8.2.2437
authorBram Moolenaar <Bram@vim.org>
Sun, 31 Jan 2021 13:36:06 +0000 (14:36 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 31 Jan 2021 13:36:06 +0000 (14:36 +0100)
Problem:    Deprecation warnings with default configuration.
Solution:   Add -Wno-deprecated-declarations.

src/auto/configure
src/configure.ac
src/version.c

index 9d76f89088cf18d3261cd581a745cc71ce37953d..12d8f24f4975f014e5d329c3274cc569f14d9c7f 100755 (executable)
@@ -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`
index e511b35082da6d5fcc4b35666e0ed55649fc5285..630433f78a65b83058a3ed502c7e77fb76d85a98 100644 (file)
@@ -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
index 768b3af20a2580921ae9fb8ecf3fa68cf490b330..903f3fd604cbaa160def5306127ac7fdb0e5cbfd 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2437,
 /**/
     2436,
 /**/