Re: [Gimp-developer] 1.2 Bug Hunting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sven Neumann wrote:
> 
> Hi,
> 
> went out for some bug-hinting in the 1.2 wilderness tonight and came
> up with this list of beasts that are still alive and should be killed
> in 1.2 if possible:

Speaking of bug-hunting...

I couldn't build gimp 1.2 (with gcc 2.96 - RedHat's 7.0 prerelease) for
the first time recently because of the following line in
app/histogram_tool.c:
Line 230:
      gimp_option_menu_set_history (g_list_nth_data
(gtk_container_children 
	(GTK_CONTAINER (histogram_tool_dialog->channel_menu)), 1), 
	GIMP_HISTOGRAM_VALUE);

The prototype for gimp_option_menu_set_history is 
void  gimp_option_menu_set_history (GtkOptionMenu      *option_menu,
				    gpointer            user_data);
and GIMP_HISTOGRAM_VALUE is an enum value equal to 0. The problem is
hidden with a cast to gpointer.

My question is whether this is a compiler bug, or whether a constant 0
is valid as a gpointer value? Does this problem show up in the shiny new
gcc 3.0? Is it a case of just upgrading the compiler?

Cheers,
Dave.

-- 
David Neary,               E-Mail dave.neary@xxxxxxxxxx
Palamon Technologies Ltd.  Phone +353-1-634-5059


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux