fix for: assignment discards qualifiers from pointer target type

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

 



I'm getting the following warning message on compile:

filename.c:124: warning: assignment discards qualifiers from pointer
target type.

This occurs on lines such as this:

...
gchar   *userid = NULL;

userid = gtk_entry_get_text(GTK_ENTRY(lookup_widget(logon, "password)));

but, gtk_entry_get_text returns a gchar* (specifically a G_CONST_RETURN
gchar*). 

So my question is, how on earth do I fix this warning message? Am I
casting something incorrectly?


-- 
 .''`.      Carl B. Constantine
: :' :     duckwing@xxxxxxxxxxx
`. `'    GnuPG: 135F FC30 7A02 B0EB 61DB  34E3 3AF1 DC6C 9F7A 3FF8
  `-  Debian GNU/Linux -- The power of freedom
  "Claiming that your operating system is the best in the world because more
  people use it is like saying McDonalds makes the best food in the world."
_______________________________________________

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