From c410530637aad9e7ab187e1fb0ffc6c3de2b5b20 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 25 Mar 2014 13:46:26 +0100 Subject: [PATCH] updated for version 7.4.216 Problem: Compiler warnings. (Tony Mechelynck) Solution: Initialize variables, add #ifdef. --- src/os_unix.h | 4 +++- src/term.c | 2 +- src/version.c | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/os_unix.h b/src/os_unix.h index d025200186..4a353388c0 100644 --- a/src/os_unix.h +++ b/src/os_unix.h @@ -565,7 +565,9 @@ int mch_rename __ARGS((const char *src, const char *dest)); # endif #endif -#define HAVE_DUP /* have dup() */ +#ifndef HAVE_DUP +# define HAVE_DUP /* have dup() */ +#endif #define HAVE_ST_MODE /* have stat.st_mode */ /* We have three kinds of ACL support. */ diff --git a/src/term.c b/src/term.c index 35a6af9bad..41974de41b 100644 --- a/src/term.c +++ b/src/term.c @@ -4185,7 +4185,7 @@ check_termcode(max_offset, buf, bufsize, buflen) { #ifdef FEAT_MBYTE int col; - int row_char; + int row_char = NUL; #endif j = 0; extra = 0; diff --git a/src/version.c b/src/version.c index bf33f2d401..65c25fe52c 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 216, /**/ 215, /**/ -- 2.47.2