RE: incompatible pointer type?



Benat,
I made the change as you suggested, and 2 of the four warnings went away.  I
am no longer seeing the "assignment makes integer from pointer without a
cast" warning.  However, I am still getting the "incompatible pointer type"
warnings and the same parse error.  

Thank you for your assistance,
Shane

-----Original Message-----
From: Benat
To: Clancy, Shane W.
Sent: 3/12/02 9:14 AM
Subject: Re: incompatible pointer type?

On Tue, 2002-03-12 at 14:50, Clancy, Shane W. wrote:
> void
> on_apply_button_clicked                (GtkButton       *button,
>                                         gpointer         user_data)
> {
> 	gchar 	text[2];
Should be:
	gchar  *text[2];

> 	gint	  i;
> 	
> 	text[0] = gtk_editable_get_chars (col1_combo, 1, -1);
> 	text[1] = gtk_editable_get_chars (col2_combo, 1, -1);
> 	
> 	for (i = 0; i < 2; i++){
> 		gtk_clist_set_text ( list, row, col, text[i];
> 		col++;
> 		}
> 	row++;
> 
> }
> 
> 
> Any help would be appreciated, thanks.
You're welcome

> Shane 

Beņat





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