updated for version 7.2.333
Problem: Warnings from static code analysis.
Solution: Small changes to various lines. (Dominique Pelle)
diff --git a/src/quickfix.c b/src/quickfix.c
index 5fc36bc..8537a7c 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -1899,7 +1899,6 @@
int i;
int idx1 = 1;
int idx2 = -1;
- int need_return = TRUE;
char_u *arg = eap->arg;
int all = eap->forceit; /* if not :cl!, only show
recognised errors */
@@ -1939,13 +1938,9 @@
{
if ((qfp->qf_valid || all) && idx1 <= i && i <= idx2)
{
- if (need_return)
- {
- msg_putchar('\n');
- if (got_int)
- break;
- need_return = FALSE;
- }
+ msg_putchar('\n');
+ if (got_int)
+ break;
fname = NULL;
if (qfp->qf_fnum != 0
@@ -1988,7 +1983,6 @@
IObuff, IOSIZE);
msg_prt_line(IObuff, FALSE);
out_flush(); /* show one line at a time */
- need_return = TRUE;
}
qfp = qfp->qf_next;