Re: off topic question
- From: Jeffrey Goddard <moosewood mooseroot org>
- To: "GTK Developement List" <gtk-app-devel-list gnome org>
- Subject: Re: off topic question
- Date: Fri, 26 Jul 2002 12:17:10 -0500
got a couple of replies, all with bits.
here's what worked for anyone who runs into this in the future:
const gchar* filename;
no more ugly warning message and code still works!
Jeffrey
On Friday 26 July 2002 12:02, you wrote:
On Fri, 26 Jul 2002, Jeffrey Goddard wrote:
ok, i realize this is probably off topic, but can someone explain what
the compiler is trying to tell me about these statements?
callbacks.c:27: warning: assignment discards qualifiers from pointer
target type
gchar *filename;
filename =
gtk_file_selection_get_filename(GTK_FILE_SELECTION(file_select_box));
Make that "const *gchar filename". You're not allowed to mess with
the string returned by gtk_file_selection_get_filename().
Allin Cottrell.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]