Bram,
I see the following compiler warning:
In file included from regexp.c:7939:
regexp_nfa.c: In function ‘nfa_regmatch’:
regexp_nfa.c:6519:6: warning: ‘result’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
if (result)
^
This patch fixes it:
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index 768bfbb9a..fd71084ec 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -5522,7 +5522,7 @@ nfa_regmatch(
regsubs_T *submatch,
regsubs_T *m)
{
- int result;
+ int result = 0;
size_t size = 0;
int flag = 0;
int go_to_nextline = FALSE;
Best,
Christian
--
Das schöne Gefühl, Geld zu haben, ist nicht so intensiv, wie das
Scheißgefühl, kein Geld zu haben.
-- Herbert Achternbusch
--
--
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.