Skip to content

Commit ee219b0

Browse files
committed
patch 8.0.1399: warnings and errors when building tiny version
Problem: Warnings and errors when building tiny version. (Tony Mechelynck) Solution: Add #ifdefs.
1 parent 9e1d399 commit ee219b0

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/ex_getln.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ abandon_cmdline(void)
172172
redraw_cmdline = TRUE;
173173
}
174174

175+
#ifdef FEAT_SEARCH_EXTRA
175176
/*
176177
* Guess that the pattern matches everything. Only finds specific cases, such
177178
* as a trailing \|, which can happen while typing a pattern.
@@ -187,6 +188,7 @@ empty_pattern(char_u *p)
187188
n -= 2;
188189
return n == 0 || (n >= 2 && p[n - 2] == '\\' && p[n - 1] == '|');
189190
}
191+
#endif
190192

191193
/*
192194
* getcmdline() - accept a command line starting with firstc.

src/ops.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,6 +1645,7 @@ shift_delete_registers()
16451645
y_regs[1].y_array = NULL; /* set register one to empty */
16461646
}
16471647

1648+
#ifdef FEAT_AUTOCMD
16481649
static void
16491650
yank_do_autocmd(oparg_T *oap, yankreg_T *reg)
16501651
{
@@ -1701,6 +1702,7 @@ yank_do_autocmd(oparg_T *oap, yankreg_T *reg)
17011702
dict_free_contents(v_event);
17021703
hash_init(&v_event->dv_hashtab);
17031704
}
1705+
#endif
17041706

17051707
/*
17061708
* Handle a delete operation.

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ static char *(features[]) =
771771

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1399,
774776
/**/
775777
1398,
776778
/**/

0 commit comments

Comments
 (0)