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

View: New views
4 Messages — Rating Filter:   Alert me  

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

by nuwan gunarahtna :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

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.

thanks


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

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 Threaded | Show Only this Message

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

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

by Ka-Hing Cheung-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

On Thu, 2009-07-02 at 12:49 +0530, evanescent wrote:
> Hi,
> I get this warning when I make my pidgin plugin.

What is this warning?

-khc


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

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

by Felix Kerekes :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

On Fri, Jul 3, 2009 at 5:26 AM, Ka-Hing Cheung <khc@...> wrote:
On Thu, 2009-07-02 at 12:49 +0530, evanescent wrote:
> Hi,
> I get this warning when I make my pidgin plugin.

What is this warning?

-khc

I think he is talking about the warning in the title 


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