Dominique Pelle wrote:

> Attached patch fixes harmless compilation warning in
> vim-7.4.131 given by the latest version of clang in subversion
> [clang version 3.5 (trunk 197868) (llvm/trunk 197866)]:
> 
> misc2.c:4698:24: warning: expression which evaluates to zero treated
> as a null pointer constant of type 'char_u *' (aka 'unsigned char *')
> [-Wnon-literal-null-conversion]
>             char_u *wc_path = NUL;
>                               ^~~
> ./ascii.h:24:14: note: expanded from macro 'NUL'
> #define NUL             '\000'
>                         ^~~~~~
> misc2.c:4699:21: warning: expression which evaluates to zero treated
> as a null pointer constant of type 'char_u *' (aka 'unsigned char *')
> [-Wnon-literal-null-conversion]
>             char_u *temp = NUL;
>                            ^~~
> ./ascii.h:24:14: note: expanded from macro 'NUL'
> #define NUL             '\000'
>                         ^~~~~~
> 
> eval.c:14144:42: warning: expression which evaluates to zero treated
> as a null pointer constant of type 'char_u *' (aka 'unsigned char *')
> [-Wnon-literal-null-conversion]
>                 list_append_string(rettv->vval.v_list, NUL, -1);
>                                                        ^~~
> ./ascii.h:24:14: note: expanded from macro 'NUL'
> #define NUL             '\000'
>                         ^~~~~~
> eval.c:14145:42: warning: expression which evaluates to zero treated
> as a null pointer constant of type 'char_u *' (aka 'unsigned char *')
> [-Wnon-literal-null-conversion]
>                 list_append_string(rettv->vval.v_list, NUL, -1);
>                                                        ^~~
> ./ascii.h:24:14: note: expanded from macro 'NUL'
> #define NUL             '\000'
>                         ^~~~~~

Thanks, I'll include the patch.

-- 
hundred-and-one symptoms of being an internet addict:
102. When filling out your driver's license application, you give
     your IP address.

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