[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Compile warning (newbie)
- From: "William D. Tallman" <wtallman olypen com>
- To: gtk-list gnome org
- Subject: Compile warning (newbie)
- Date: Mon, 16 Apr 2007 14:32:28 -0700
The following function yields the warning, compiled with '-Wall':
dataentry.c: In function `edit_changed':
dataentry.c:21: warning:
assignment discards qualifiers from pointer target type
The code snippet:
void edit_changed (GtkWidget *widget, gpointer *data)
{
gchar *str;
>> str = gtk_entry_get_text (GTK_ENTRY (widget)); <<
g_print ("Entry changed to %s\n", str);
}
IIRC, this compiled without warning in gtk+-1.2, but not in gtk+-2.4.
What is it that being discarded here, and/or what is the correct way to
assign gtk_entry_get_text(etc.)?
Thanks,
Bill Tallman
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]