# HG changeset patch # User Mark Doliner # Date 1267737950 0 # Node ID cead5610c89a7a535bf655c259331ad5294518bc # Parent 70de81d95bf32723e85ac3a432e15e7328b70e88 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) diff -r 70de81d95bf3 -r cead5610c89a libpurple/plugins/perl/perl-handlers.c --- 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