Dominique Pelle wrote:

> clang-3.1 gives the following compilation warning with vim-7.3.351:
> 
> ===========================================
> syntax.c:9479:46: warning: adding 'int' to a string does not append to
> the string [-Wstring-plus-int]
>     msg_puts_attr((char_u *)("N \bI \b!  \b" + cnt / 11), attr);
>                              ~~~~~~~~~~~~~~~~^~~~~~~~~~
> syntax.c:9479:46: note: use array indexing to silence this warning
>     msg_puts_attr((char_u *)("N \bI \b!  \b" + cnt / 11), attr);
>                                              ^
>                              &               [         ]
> 1 warning generated.
> ===========================================
> 
> It's not a bug in this case, but attached patch silences the
> warning using the compiler's suggestion.

Nice that the clang warning includes the solution.  I'll include the
fix, thanks.

-- 
hundred-and-one symptoms of being an internet addict:
7. You finally do take that vacation, but only after buying a cellular modem
   and a laptop.

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

Raspunde prin e-mail lui