Re: Newbie question
- From: iain <iain prettypeople org>
- To: Tristan Van Berkom <vantr touchtunes com>
- Cc: Alessio Zanon <znnalx yahoo it>, gtk-app-devel-list gnome org
- Subject: Re: Newbie question
- Date: Tue, 14 Oct 2003 18:39:33 +0100
On Tue, 2003-10-14 at 18:01, Tristan Van Berkom wrote:
"assignment discards qualifiers from pointer target
type"
on line:
msg = gtk_entry_get_text(GTK_ENTRY(display));
What does it mean???
it means that `msg' was declared as `const [something] * msg;'
and now that you are assigning something to it, the compiler must
discard `const'.
Or the other way around.
gtk_entry_get_text returns const char *, and msg is probably char *.
either declare const char *msg, or cast it
msg = (char *) gtk_entry_get_text...
iain
--
"Miss Celine Dion sings lovesongs while our cities burn"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]