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 (2010-03-04)
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