Avoid use of cast as lvalue.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@18051 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-11-05 02:34:10 +00:00
parent dbe4650406
commit 186159864d
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2003-11-05 03:29 Alexander Malmberg <alexander@malmberg.org>
* Source/x11/XGServerEvent.m (-receivedEvent:type:extra:forMode:):
Casts as lvalues will be deprecated in gcc 3.4. Thus, don't assign
to the cWin macro. Reported by Lyndon Tremblay.
2003-11-02 02:58 Alexander Malmberg <alexander@malmberg.org>
* Source/gsc/GSStreamContext.m Whitespace cleanups.

View file

@ -914,7 +914,7 @@ static inline int check_modifier (XEvent *xEvent, KeyCode key_code)
XGetInputFocus(xEvent.xfocus.display, &fw, &rev);
NSDebugLLog(@"NSEvent", @"%d FocusOut\n",
xEvent.xfocus.window);
cWin = [XGServer _windowForXWindow: fw];
generic.cachedWindow = [XGServer _windowForXWindow: fw];
if (cWin == 0)
{
cWin = [XGServer _windowForXParent: fw];