]> granicus.if.org Git - vim/commitdiff
patch 8.0.0192: cannot build with tiny features v8.0.0192
authorBram Moolenaar <Bram@vim.org>
Sun, 15 Jan 2017 16:18:57 +0000 (17:18 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 15 Jan 2017 16:18:57 +0000 (17:18 +0100)
Problem:    Build fails with tiny features.
Solution:   Change #ifdef for hash_clear().  Avoid warning for unused
            argument.

src/hashtab.c
src/if_cscope.c
src/version.c

index 658bfb969468443222363130a928569aec06c3ed..4bf41e0dabeb11c2f56de11cd98d17264f0b5e11 100644 (file)
@@ -70,7 +70,6 @@ hash_init(hashtab_T *ht)
     ht->ht_mask = HT_INIT_SIZE - 1;
 }
 
-#if defined(FEAT_EVAL) || defined(FEAT_SYN_HL) || defined(PROTO)
 /*
  * Free the array of a hash table.  Does not free the items it contains!
  * If "ht" is not freed then you should call hash_init() next!
@@ -104,7 +103,6 @@ hash_clear_all(hashtab_T *ht, int off)
     }
     hash_clear(ht);
 }
-#endif
 
 /*
  * Find "key" in hashtable "ht".  "key" must not be NULL.
index 31c037187966c1e65ddc82dd2616491ca4cf571d..60480a5b7e173a562068189a6d0b567d13f82c2d 100644 (file)
@@ -207,7 +207,7 @@ set_context_in_cscope_cmd(
     static void
 do_cscope_general(
     exarg_T    *eap,
-    int                make_split) /* whether to split window */
+    int                make_split UNUSED) /* whether to split window */
 {
     cscmd_T *cmdp;
 
index bf4b82d10cf690c47f03937016607733408e2413..a825013301c59f573831f5a0600493b8997e9337 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    192,
 /**/
     191,
 /**/