PurplePluginProtocolInfo : warning: initialization makes pointer from integer without a cast

Mark Doliner mark at kingant.net
Thu Jul 2 03:37:57 EDT 2009


On Thu, Jul 2, 2009 at 12:19 AM, evanescent<coolnuwan at gmail.com> wrote:
> Hi,
> I get this warning when I make my pidgin plugin.
> This warning returns from where I declare PurplePluginProtocoInfo.
>
> static PurplePluginProtocolInfo prpl_info =
> {
>   ......
>         NULL,
>         sizeof(PurplePluginProtocolInfo),       /* struct_size */
>         NULL
> };
>
>
> At this line "sizeof(PurplePluginProtocolInfo)," the warning is returned.
>
> what am i missing . I have followed bonjour.c source file and all the header
> files has been included into my source as well.

Are you sure you have the correct number of initializers before the
sizeof() call?  Maybe check to make sure you don't have one too many
or one too few NULLs.

-Mark




More information about the Devel mailing list