diff src/syntax.c @ 11073:d2178a6cc9f3 v8.0.0425

patch 8.0.0425: build errors when building without folding commit https://github.com/vim/vim/commit/a6c07603ca2fa98a4184f5fd5ab021adcf5156b2 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 5 21:18:27 2017 +0100 patch 8.0.0425: build errors when building without folding Problem: Build errors when building without folding. Solution: Add #ifdefs. (John Marriott)
author Christian Brabandt <cb@256bit.org>
date Sun, 05 Mar 2017 21:30:05 +0100
parents 835604f3c37a
children d8a550329a97
line wrap: on
line diff
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1183,11 +1183,12 @@ syn_stack_free_block(synblock_T *block)
     void
 syn_stack_free_all(synblock_T *block)
 {
+#ifdef FEAT_FOLDING
     win_T	*wp;
+#endif
 
     syn_stack_free_block(block);
 
-
 #ifdef FEAT_FOLDING
     /* When using "syntax" fold method, must update all folds. */
     FOR_ALL_WINDOWS(wp)