[Swfdec] libswfdec/swfdec_as_native_function.h

Pekka Lampila medar at kemper.freedesktop.org
Thu Oct 11 01:06:16 PDT 2007


 libswfdec/swfdec_as_native_function.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
diff-tree 1842d3858b37ce64020a91b2056415177594c266 (from d5d06f45e7c5a64725dd1c6fe061ff1e0fd15110)
Author: Pavel Roskin <proski at gnu.org>
Date:   Thu Oct 11 11:05:56 2007 +0300

    Fix a compiler warning when using SWFDEC_AS_CHECK
    
    Avoid casting to (gpointer *) in SWFDEC_AS_CHECK definition. Casting to
    (gpointer) is sufficient and avoids warnings about strict aliasing.

diff --git a/libswfdec/swfdec_as_native_function.h b/libswfdec/swfdec_as_native_function.h
index bbdce1d..88c172d 100644
--- a/libswfdec/swfdec_as_native_function.h
+++ b/libswfdec/swfdec_as_native_function.h
@@ -86,7 +86,7 @@ gboolean	swfdec_as_native_function_check
 						 const char *	      	args,
 						 va_list		varargs);
 #define SWFDEC_AS_CHECK(type,result,...) G_STMT_START {\
-  if (!swfdec_as_native_function_check (cx, object, type, (gpointer *) result, argc, argv, __VA_ARGS__)) \
+  if (!swfdec_as_native_function_check (cx, object, type, (gpointer) result, argc, argv, __VA_ARGS__)) \
     return; \
 }G_STMT_END
 


More information about the Swfdec mailing list