Kazunobu Kuriyama wrote:

> With this patch, I got the following warnings:
> 
> ```
> clang -c ...<snip>... -o objects/syntax.o syntax.c
> syntax.c:991:22: warning: declaration shadows a variable in the global
> scope [-Wshadow]
> save_chartab(char_u *chartab)
>                      ^
> ./globals.h:1015:15: note: previous declaration is here
> EXTERN char_u   chartab[256];           /* table used in charset.c; See
>                 ^
> syntax.c:1002:25: warning: declaration shadows a variable in the global
> scope [-Wshadow]
> restore_chartab(char_u *chartab)
>                         ^
> ./globals.h:1015:15: note: previous declaration is here
> EXTERN char_u   chartab[256];           /* table used in charset.c; See
>                 ^
> 2 warnings generated.
> ```

I'll rename the global chartab.  And it's not difficult to move it to
charset.c.  Nice cleanup.

-- 
hundred-and-one symptoms of being an internet addict:
20. When looking at a pageful of someone else's links, you notice all of them
    are already highlighted in purple.

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