Re: Compile warning (newbie)

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

 



On Mon, 2007-04-16 at 14:32 -0700, William D. Tallman wrote:

>     assignment discards qualifiers from pointer target type
> 
...
>     gchar *str;
> 
>     str = gtk_entry_get_text (GTK_ENTRY (widget));

Return type of gtk_entry_get_text() is (const gchar*), not just
(gchar*). You discarded the const qualifier when assigning the result to
str.

Just declare str with const.

AfC
Sydney

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux