Re: void value not ignored



hi guys.  I cant figure this one out.  GCC gives me this:

gnomoradio-prefs.c:70: void value not ignored as it ought to be

Here is the code that it is complaining about:

if (gtk_toggle_button_toggled(GTK_TOGGLE_BUTTON(elasped_radio))) {
        gnome_config_set_string("~/.gnome/gnomoradio/Preferences/timer",
"elasped");
} else {
        gnome_config_set_string("~/.gnome/gnomoradio/Preferences/timer",
"remaining"); }

elasped_radio is a GTK_RADIO_BUTTON.

I think I was getting this when I was compiling a project as C++ instead of
C.
You may try type casting the all the strings to (gchar *)  or (gpointer).
I use
KDE to compile my apps if this helps.  I think C++ is more  stringent on
passing data.

Frank





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