Hi,

Clang warns this after 7.4.338:

screen.c:3707:17: warning: expression which evaluates to zero treated as a null
      pointer constant of type 'char_u *' (aka 'unsigned char *')
      [-Wnon-literal-null-conversion]
                    p_extra = NUL;
                              ^~~
./ascii.h:24:14: note: expanded from macro 'NUL'
#define NUL             '\000'
                        ^~~~~~

Here is a patch:

--- a/src/screen.c
+++ b/src/screen.c
@@ -3705,7 +3705,7 @@ win_line(wp, lnum, startrow, endrow, noc
                    if (diff_hlf != (hlf_T)0)
                        char_attr = hl_attr(diff_hlf);
 #endif
-                   p_extra = NUL;
+                   p_extra = NULL;
                    c_extra = ' ';
                    n_extra = get_breakindent_win(wp,
                                       ml_get_buf(wp->w_buffer, lnum, FALSE));

Regards,
Ken Takata

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