[Swfdec] [Bug 22803] New: 0.9.2 swfdec_as_object_add_variable prototype mismatch between .h & .c

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 16 13:41:30 PDT 2009


http://bugs.freedesktop.org/show_bug.cgi?id=22803

           Summary: 0.9.2 swfdec_as_object_add_variable  prototype mismatch
                    between .h & .c
           Product: swfdec
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: library
        AssignedTo: swfdec at lists.freedesktop.org
        ReportedBy: enchanter at users.sourceforge.net
         QAContact: swfdec at lists.freedesktop.org


In swfdec-0.9.2, the prototype for swfdec_as_object_add_variable in
swfdec/swfdec_as_object.h is

void        swfdec_as_object_add_variable   (SwfdecAsObject *   object,
                         const char *       variable,
                         SwfdecAsFunction * get,
                         SwfdecAsFunction * set,
                         SwfdecAsVariableFlag   default_flags);

However, in the definition in swfdec_as_object.c, it's

void
swfdec_as_object_add_variable (SwfdecAsObject *object, const char *variable,
    SwfdecAsFunction *get, SwfdecAsFunction *set, guint default_flags)


The last parameter differs.  The Solaris Workshop compiler complains about this
and it certainly seems like it's a bug.

I've modified the definition to match the declaration from the header file.

Trivial patch is attached.

(BTW, it might be nice if there were version options available in bugzilla for
0.9, I had to use unspecified).

Thanks,

Tim


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the Swfdec mailing list