Ethereal-dev: Re: [Fwd: Re: [Ethereal-dev] GTK2 only: Application specific stoc k icons (f or

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Tue, 18 Nov 2003 01:30:26 +0100
Biot Olivier wrote:

| From: Ulf Lamping
| | Biot Olivier wrote: | | > It works on cygwin but I get compiler warnings about | passing arg1 from | > gdk_pixbuf_new_from_xpm_data from incompatible pointer | types. Ethereal | > however runs without crashing on the toolbar. I compile | with GTK2 and GLib2. | > | | Hmmm, this line should be ok, but let's have a try, by adding the
| following cast:
| | pixbuf = gdk_pixbuf_new_from_xpm_data((const char **)
| (pixmaps[i].xpm_data));
| | This should fix the problem. | | Could you try this out, and send me a response, if it did fix | the warning?

This indeed fixes the warning; now I see GCC complaining at lines 305--307
of toolbar.c about unused variables icon, iconw anc mask.

Regards,

Olivier

Hi!

After using MSVC warning level 3, I see this warning also. I will check in a fix for this shortly.

Regards, ULFL