]> granicus.if.org Git - vim/commitdiff
patch 8.2.4773: build failure without the +eval feature v8.2.4773
authorBram Moolenaar <Bram@vim.org>
Sun, 17 Apr 2022 13:18:11 +0000 (14:18 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 17 Apr 2022 13:18:11 +0000 (14:18 +0100)
Problem:    Build failure without the +eval feature.
Solution:   Use other error message.  Avoid warnings.

src/cindent.c
src/misc1.c
src/term.c
src/version.c

index 268d274aec5d57c90b05b0e14363aee7530e88a8..57add394b00e0a917ead03dbe56a1bb7aa0283a6 100644 (file)
@@ -420,7 +420,7 @@ cin_islabel_skip(char_u **s)
 }
 
 /*
- * Recognize a "public/private/protected" scope declaration label.
+ * Recognize a scope declaration label from the 'cinscopedecls' option.
  */
     static int
 cin_isscopedecl(char_u *p)
@@ -440,7 +440,7 @@ cin_isscopedecl(char_u *p)
 
     for (cinsd = curbuf->b_p_cinsd; *cinsd; )
     {
-       len = copy_option_part(&cinsd, cinsd_buf, cinsd_len, ",");
+       len = copy_option_part(&cinsd, cinsd_buf, (int)cinsd_len, ",");
        if (STRNCMP(s, cinsd_buf, len) == 0)
        {
            skip = cin_skipcomment(s + len);
index 3b8464ec13cbc901669dafd1fc564b15960df443..28d49639bc4fa2f857bd17525f8458e69320056c 100644 (file)
@@ -2343,7 +2343,7 @@ get_cmd_output(
            || (len = ftell(fd)) == -1          // get size of temp file
            || fseek(fd, 0L, SEEK_SET) == -1)   // back to the start
     {
-       semsg(_(e_cannot_read_from_str), tempname);
+       semsg(_(e_cannot_read_from_str_2), tempname);
        if (fd != NULL)
            fclose(fd);
        goto done;
index 8f3ee600f0cad8ddebc39993a3f6f3256e88afd6..73c76cd7a0e557b60eb8a8a793c51544026f609c 100644 (file)
@@ -5957,7 +5957,7 @@ replace_termcodes(
     int                i;
     int                slen;
     int                key;
-    int                dlen = 0;
+    size_t     dlen = 0;
     char_u     *src;
     int                do_backslash;   // backslash is a special character
     int                do_special;     // recognize <> key codes
@@ -5977,7 +5977,7 @@ replace_termcodes(
      * In the rare case more might be needed ga_grow() must be called again.
      */
     ga_init2(&ga, 1L, 100);
-    if (ga_grow(&ga, STRLEN(src) * 6 + 1) == FAIL) // out of memory
+    if (ga_grow(&ga, (int)(STRLEN(src) * 6 + 1)) == FAIL) // out of memory
     {
        *bufp = NULL;
        return from;
@@ -6044,8 +6044,8 @@ replace_termcodes(
                                // Turn "<SID>name.Func"
                                // into "scriptname#Func".
                                len = STRLEN(si->sn_autoload_prefix);
-                               if (ga_grow(&ga, STRLEN(src) * 6 + len + 1)
-                                                                      == FAIL)
+                               if (ga_grow(&ga,
+                                    (int)(STRLEN(src) * 6 + len + 1)) == FAIL)
                                {
                                    ga_clear(&ga);
                                    *bufp = NULL;
@@ -6064,7 +6064,7 @@ replace_termcodes(
                    result[dlen++] = (int)KS_EXTRA;
                    result[dlen++] = (int)KE_SNR;
                    sprintf((char *)result + dlen, "%ld", sid);
-                   dlen += (int)STRLEN(result + dlen);
+                   dlen += STRLEN(result + dlen);
                    result[dlen++] = '_';
                    continue;
                }
index fdc2508a6044514f9b84e6878c96dccde1eba989..bdefc25f31e64f6bfb53f78e91be8307820fd29b 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4773,
 /**/
     4772,
 /**/