Sorry, I express myself wrongly.
In the gnome-mag source tree I must comment every line where I use a
BONOBO_ARG_{SET,GET}_* macro so the code compile. I track a little to
try understand how this macro is expanded, but this is a bit complex, so
I don't know yet how this is done.
For example, if you open the magnifier/magnifier.c code and go to the
impl_magnifier_set_source_display function, there is this call in the
body of the method:
BONOBO_ARG_SET_STRING (arg, full_display_string);
And when the preprocessor expand this macro it becomes:
(do { if ((arg)->_type->kind == CORBA_tk_string) ; else
g_assertion_message_expr (((gchar*) 0), "magnifier.c", 1256, ((const
char*) (__PRETTY_FUNCTION__)), "(arg)->_type->kind == CORBA_tk_string");
} while (0), CORBA_free (*(char **)(arg)->_value), *((CORBA_char
**)((arg)->_value)) = CORBA_string_dup
((full_display_string)?(full_display_string):""));
What apparently is right, but gives the following error:
magnifier.c:1257: error: expected expression before 'do'
Can this be a bug in GCC?
--
[hardy] gnome-mag trunk fails to compile
https://bugs.launchpad.net/bugs/178945
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs