Hi
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'
^~~~~~
Regards
Dominique
--
--
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.
diff -r 2f856c7c1d43 src/eval.c
--- a/src/eval.c Sun Dec 15 10:02:33 2013 +0100
+++ b/src/eval.c Sun Dec 22 14:20:12 2013 +0100
@@ -14141,8 +14141,8 @@
}
else
{
- list_append_string(rettv->vval.v_list, NUL, -1);
- list_append_string(rettv->vval.v_list, NUL, -1);
+ list_append_string(rettv->vval.v_list, NULL, -1);
+ list_append_string(rettv->vval.v_list, NULL, -1);
}
}
#endif
diff -r 2f856c7c1d43 src/misc2.c
--- a/src/misc2.c Sun Dec 15 10:02:33 2013 +0100
+++ b/src/misc2.c Sun Dec 22 14:20:12 2013 +0100
@@ -4695,8 +4695,8 @@
else
{
char_u *p = gettail(search_ctx->ffsc_fix_path);
- char_u *wc_path = NUL;
- char_u *temp = NUL;
+ char_u *wc_path = NULL;
+ char_u *temp = NULL;
int len = 0;
if (p > search_ctx->ffsc_fix_path)