Mercurial > pidgin
changeset 29528:cead5610c89a
Add a cast to silence this warning.
perl-handlers.c: In function ¡Æperl_signal_cb¡Ç:
perl-handlers.c:306: warning: passing argument 2 of ¡Æpurple_perl_sv_from_vargs¡Ç from incompatible pointer type
perl-common.h:69: note: expected ¡Æstruct __va_list_tag (*)[1]¡Ç but argument is of type ¡Æstruct __va_list_tag *¡Ç
This may not be the most elegant solution, but va_args aren't really elegant,
and this solution is at least easy.
Thanks very much to the expert bug reporting and research done by
dharding!
Fixes #11431 (that ticket has a lot of information about this change)
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 04 Mar 2010 21:25:50 +0000 |
parents | 70de81d95bf3 |
children | 3e5bb4e2334c |
files | libpurple/plugins/perl/perl-handlers.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/plugins/perl/perl-handlers.c Thu Mar 04 17:08:19 2010 +0000 +++ b/libpurple/plugins/perl/perl-handlers.c Thu Mar 04 21:25:50 2010 +0000 @@ -299,7 +299,7 @@ for (i = 0; i < value_count; i++) { sv_args[i] = purple_perl_sv_from_vargs(values[i], #ifdef VA_COPY_AS_ARRAY - args, + (va_list*)args, #else (va_list*)&args, #endif