« Return to Thread: PurplePluginProtocolInfo : warning: initialization makes pointer from integer without a cast

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

by Mark Doliner :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View in Thread

On Thu, Jul 2, 2009 at 12:19 AM, evanescent<coolnuwan@...> 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

_______________________________________________
Devel mailing list
Devel@...
http://pidgin.im/cgi-bin/mailman/listinfo/devel

 « Return to Thread: PurplePluginProtocolInfo : warning: initialization makes pointer from integer without a cast