summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-06-29 22:27:24 +0200
committerBram Moolenaar <Bram@vim.org>2017-06-29 22:27:24 +0200
commitc2226845eb207bcd1a24e1afa941acbfecbc5170 (patch)
tree47b8c0baf0c4d848c2c007747c6aeb790687cb2e
parenta693d0584b9a7ccce98813dda3a6badb209904c7 (diff)
patch 8.0.0690: compiler warning on non-Unix systemv8.0.0690
Problem: Compiler warning on non-Unix system. Solution: Add #ifdef. (John Marriott)
-rw-r--r--src/term.c8
-rw-r--r--src/version.c2
2 files changed, 7 insertions, 3 deletions
diff --git a/src/term.c b/src/term.c
index 0dbe6d500b..989d6b7af6 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2524,7 +2524,9 @@ out_str_cf(char_u *s)
{
if (s != NULL && *s)
{
+#ifdef HAVE_TGETENT
char_u *p;
+#endif
#ifdef FEAT_GUI
/* Don't use tputs() when GUI is used, ncurses crashes. */
@@ -2549,7 +2551,7 @@ out_str_cf(char_u *s)
tputs((char *)p, 1, TPUTSFUNCAST out_char_nf);
*s = save_c;
out_flush();
-#ifdef ELAPSED_FUNC
+# ifdef ELAPSED_FUNC
/* Only sleep here if we can limit this happening in
* vim_beep(). */
p = vim_strchr(s, '>');
@@ -2563,10 +2565,10 @@ out_str_cf(char_u *s)
++p;
do_sleep(duration);
}
-#else
+# else
/* Rely on the terminal library to sleep. */
p = s;
-#endif
+# endif
break;
}
}
diff --git a/src/version.c b/src/version.c
index 64f035dbd9..27f04365e4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 690,
+/**/
689,
/**/
688,