Re: gnome-ui-handler ...




Michael Meeks <michael@imaginator.com> wrote:
> 
> I had a look at the plethora of warnings compiling this, all seemingly
> stemming from insufficiently constified paramaters ( thus out of kilter
> with Bonobo.h ). I tried to fix it, but this just pushed the problem
> further down the message passing hierarchy.

	The problem is that the new orbit-idl compiler no longer tags
'in' parameters with 'const.'  I updated Bonobo to reflect this new
behavior, deconstifying all the CORBA method implementations.
Unfortunately unconst-ipated semantics are wrong; the constlessness
propagates all the way to your API entry routines, and you end up
unable to use 'const' anywhere.  Elliot has assured us that this will
be fixed eventually, so we can look forward to changing all of those
method declarations back :-).

	It sounds to me like you are using an old version of
orbit-idl, and that's why the current (constless) CORBA functions are
causing the compiler to emit those warnings for you.  You might want
to build and install a new ORBit.

	Hmm.  It strikes me that there are some functions which cannot
be implemented without generating that const warning.  For example:

		char * strchr (const char *s, int c);

You're eventually going to end up casting to a constless char * in
order to return a value from the function.

Nat



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