John Little wrote:

> This patch gives me a compile warning (from gcc -Wshadow)
> 
> regexp_nfa.c: In function ‘nfa_regatom’:
> regexp_nfa.c:830:8: warning: declaration of ‘i’ shadows a previous local 
> [-Wshadow]
> regexp_nfa.c:607:10: warning: shadowed declaration is here [-Wshadow]
> 
> The declaration of int i; at the beginning of nfa_regatom() is only
> used near the end; I suggest the declaration be moved to the scope
> where it is used.

Thanks for reporting.

Some variables used in a large scope have a simple name, that causes
this kind of mistakes.  I'll do a bit of renaming.

-- 
While it's true that many normal people whould prefer not to _date_ an
engineer, most normal people harbor an intense desire to _mate_ with them,
thus producing engineerlike children who will have high-paying jobs long
before losing their virginity.
                                (Scott Adams - The Dilbert principle)

 /// 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/groups/opt_out.


Raspunde prin e-mail lui