GNOME Bugzilla – Bug 239176
Error when build gal/gal/menus/gal-view-instance.c using Forte
Last modified: 2003-03-21 17:34:56 UTC
~/gal/gal/menus/gal-view-instance.c static void add_popup_radio_item (EPopupMenu *menu_item, gchar *title, GtkSignalFunc fn, gpointer closure, gboolean value) { const EPopupMenu menu_item_struct = //delete const here E_POPUP_RADIO_ITEM_CC (title, fn, closure, 0, value); //error with 'value' e_popup_menu_copy_1 (menu_item, &menu_item_struct); } When compile these lines , Forte will error. In order to pass, we removed 'const' and changed 'value' to 1 (or 0 since it's a boolean.). This may need more work.
This syntax is only legal in C++. GNU C allows it as an extension. Forte cc rejects.
patch committed to trunk. thanks