]> granicus.if.org Git - vim/commitdiff
patch 8.0.0382: warning in tiny build for unused variable v8.0.0382
authorBram Moolenaar <Bram@vim.org>
Mon, 27 Feb 2017 19:33:46 +0000 (20:33 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 27 Feb 2017 19:33:46 +0000 (20:33 +0100)
Problem:    Warning in tiny build for unused variable. (Tony Mechelynck)
Solution:   Add #ifdefs.

src/screen.c
src/version.c

index cc9c9f6dc5777b7b888abc1099a3cbf43b998bca..2c9bbef9e53c339a5002b3a681c5d8b2c84a5706 100644 (file)
@@ -4189,7 +4189,9 @@ win_line(
        }
        else
        {
+#ifdef FEAT_LINEBREAK
            int c0;
+#endif
 
            if (p_extra_free != NULL)
            {
@@ -4199,7 +4201,9 @@ win_line(
            /*
             * Get a character from the line itself.
             */
+#ifdef FEAT_LINEBREAK
            c0 = c = *ptr;
+#endif
 #ifdef FEAT_MBYTE
            if (has_mbyte)
            {
@@ -4216,7 +4220,12 @@ win_line(
                        /* Overlong encoded ASCII or ASCII with composing char
                         * is displayed normally, except a NUL. */
                        if (mb_c < 0x80)
-                           c0 = c = mb_c;
+                       {
+                           c = mb_c;
+# ifdef FEAT_LINEBREAK
+                           c0 = mb_c;
+# endif
+                       }
                        mb_utf8 = TRUE;
 
                        /* At start of the line we can have a composing char.
index ccde26dd14aa4e0b07c6544a8da002778e33ce72..7099c2d653fde001a003905e85eafe12e12dd34b 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    382,
 /**/
     381,
 /**/