summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-27 21:46:19 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-27 21:46:19 +0200
commit9cf39cc57f63f57b4a335cd25371eb456824f049 (patch)
treedb2eacc3a3914f2de13dd3880616b2886ef311e4
parent1ec96c926974208bd47710384c8202c47d0752d0 (diff)
downloadvim-git-9cf39cc57f63f57b4a335cd25371eb456824f049.tar.gz
patch 8.0.1157: compiler warning on MS-Windowsv8.0.1157
Problem: Compiler warning on MS-Windows. Solution: Add type cast. (Yasuhiro Matsomoto)
-rw-r--r--src/main.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 3b18bf1e4..fd96f41bd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2573,7 +2573,7 @@ check_tty(mparm_T *parmp)
* Note that the message is shown on a Cygwin terminal (e.g.
* mintty) which encoding is based on $LC_ALL or etc., not the
* current codepage used by normal Win32 console programs. */
- tofree = s = enc_locale_env(NULL);
+ tofree = s = (char *)enc_locale_env(NULL);
if (s == NULL)
s = "utf-8"; /* Use "utf-8" by default. */
(void)bind_textdomain_codeset(VIMPACKAGE, s);
diff --git a/src/version.c b/src/version.c
index 902b05c76..cf76f81d5 100644
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1157,
+/**/
1156,
/**/
1155,