• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revisióne79bfdc53aee1aa5adc1ad92e70c303858e58f33 (tree)
Tiempo2022-05-28 05:30:03
AutorBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Log Message

patch 8.2.5033: build error with +eval but without +quickfix

Commit: https://github.com/vim/vim/commit/968443efb5a2a1ed7e1084f2aff65a95f2d0a17b
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 27 21:16:34 2022 +0100

patch 8.2.5033: build error with +eval but without +quickfix
Problem: Build error with +eval but without +quickfix. Warning for
uninitialized variable.
Solution: Adjust #ifdefs. (John Marriott)

Cambiar Resumen

Diferencia incremental

diff -r b8a4aec82685 -r e79bfdc53aee src/autocmd.c
--- a/src/autocmd.c Fri May 27 21:30:04 2022 +0200
+++ b/src/autocmd.c Fri May 27 22:30:03 2022 +0200
@@ -2769,7 +2769,6 @@
27692769 listitem_T *pli;
27702770 char_u *cmd = NULL;
27712771 char_u *end;
2772- char_u *p;
27732772 int once;
27742773 int nested;
27752774 int replace; // replace the cmd for a group/event
@@ -2937,6 +2936,8 @@
29372936 }
29382937 else
29392938 {
2939+ char_u *p = NULL;
2940+
29402941 eli = NULL;
29412942 end = NULL;
29422943 while (TRUE)
diff -r b8a4aec82685 -r e79bfdc53aee src/errors.h
--- a/src/errors.h Fri May 27 21:30:04 2022 +0200
+++ b/src/errors.h Fri May 27 22:30:03 2022 +0200
@@ -1953,10 +1953,10 @@
19531953 #ifdef FEAT_QUICKFIX
19541954 EXTERN char e_no_location_list[]
19551955 INIT(= N_("E776: No location list"));
1956-# ifdef FEAT_EVAL
1956+#endif
1957+#ifdef FEAT_EVAL
19571958 EXTERN char e_string_or_list_expected[]
19581959 INIT(= N_("E777: String or List expected"));
1959-# endif
19601960 #endif
19611961 #ifdef FEAT_SPELL
19621962 EXTERN char e_this_does_not_look_like_sug_file_str[]
diff -r b8a4aec82685 -r e79bfdc53aee src/version.c
--- a/src/version.c Fri May 27 21:30:04 2022 +0200
+++ b/src/version.c Fri May 27 22:30:03 2022 +0200
@@ -735,6 +735,8 @@
735735 static int included_patches[] =
736736 { /* Add new patch number below this line */
737737 /**/
738+ 5033,
739+/**/
738740 5032,
739741 /**/
740742 5031,
Show on old repository browser