Hi,
Compiling commit e0d3797 with GCC and -pedantic gives the following
warning:
quickfix.c: In function 'qf_init_ext':
quickfix.c:795: warning: initializer element is not computable at load time
quickfix.c:795: warning: initializer element is not computable at load time
Attached is a patch that gets rid of this warning.
--
:wq
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/quickfix.c b/src/quickfix.c
index 4be1d91..fa76e5d 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -792,7 +792,7 @@ qf_init_ext(
int errmsglen;
char_u *pattern;
qfstate_T state = {NULL, 0, NULL, 0, NULL, NULL, NULL, NULL,
- NULL, lnumfirst, lnumlast};
+ NULL, 0, 0};
int col = 0;
char_u use_viscol = FALSE;
int type = 0;
@@ -816,6 +816,8 @@ qf_init_ext(
char_u *tail = NULL;
regmatch_T regmatch;
+ state.buflnum = lnumfirst;
+ state.lnumlast = lnumlast;
namebuf = alloc_id(CMDBUFFSIZE + 1, aid_qf_namebuf);
errmsglen = CMDBUFFSIZE + 1;
errmsg = alloc_id(errmsglen, aid_qf_errmsg);