Hi,
I get the following warning when compiling vim:
ex_getln.c: In function ‘call_user_expand_func’:
ex_getln.c:4697: warning: format ‘%d’ expects type ‘int’, but
argument 3 has type ‘size_t’
That line is
sprintf((char *)num, "%d", STRLEN(xp->xp_pattern));
Adding an explicit cast makes the warning go away:
sprintf((char *)num, "%d", (int)STRLEN(xp->xp_pattern));
Nico
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---