Christian wrote:

> 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;

I'll include it, thanks.

-- 
TIM: To the north there lies a cave,  the cave of Caerbannog, wherein, carved
     in mystic runes, upon the very living rock, the last words of Olfin
     Bedwere of Rheged make plain the last resting place of the most Holy
     Grail.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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.

Raspunde prin e-mail lui