]> granicus.if.org Git - vim/commitdiff
patch 8.2.0608: warning from clang when building message test v8.2.0608
authorBram Moolenaar <Bram@vim.org>
Mon, 20 Apr 2020 14:12:09 +0000 (16:12 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 20 Apr 2020 14:12:09 +0000 (16:12 +0200)
Problem:    Warning from clang when building message test.
Solution:   Use a void pointer.  (Dominique Pelle, closes #5958)

src/message_test.c
src/version.c

index 014d8d9d45314172e5f008dd801ffc03d4946f2b..85a29b4712828a694158352a45a881cf5c6738a1 100644 (file)
@@ -127,7 +127,7 @@ test_vim_snprintf(void)
     int                n;
     size_t     bsize;
     int                bsize_int;
-    char       *ptr = (char *)0x87654321;
+    void       *ptr = (void *)0x87654321;
 
     // Loop on various buffer sizes to make sure that truncation of
     // vim_snprintf() is correct.
index f175ff3d2f420a6f9e6bbd4eb8d8ad11e553d26f..2b1a12609240c957921933210cb5f9128b921252 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    608,
 /**/
     607,
 /**/