Hi

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.

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

Attachment: fix-warning-syntax.c-7.3.531.patch
Description: Binary data

Raspunde prin e-mail lui