The return value *IS* OSStatus, so we can't change it.

Ok, but we have to modify something, to avoid the warnings

Yes, we have to check the returned value of type OSStatus (named rc).

For return  values, we use errval in salframe.cxx...

Exact, I found one, yes, not for OSStatus type,  but OSErr

Yes, because it is used as the return value of GetRootControl:

http://developer.apple.com/documentation/Carbon/Reference/ Control_Manager/Reference/reference.html#//apple_ref/c/func/ GetRootControl

There are four other usages of it for OSStatus:

aqua/source/window/salframe.cxx:803:        OSStatus errval;
aqua/source/window/salframe.cxx:837:    OSStatus errval;
aqua/source/window/salframe.cxx:882:    OSStatus errval;
aqua/source/window/salframe.cxx:921:        OSStatus errval;
--
Pavel Janík


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to