[MPlayer-cvslog] r27061 - trunk/libvo/x11_common.c

diego subversion at mplayerhq.hu
Sun Jun 15 13:11:40 CEST 2008


Author: diego
Date: Sun Jun 15 13:11:39 2008
New Revision: 27061

Log:
Add parentheses to expression to avoid the warning:
libvo/x11_common.c: In function 'xss_suspend':
libvo/x11_common.c:1618: warning: suggest parentheses around && within ||


Modified:
   trunk/libvo/x11_common.c

Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c	(original)
+++ trunk/libvo/x11_common.c	Sun Jun 15 13:11:39 2008
@@ -1615,7 +1615,7 @@ static int xss_suspend(Bool suspend)
     if (XScreenSaverQueryExtension(mDisplay, &event, &error) != True ||
         XScreenSaverQueryVersion(mDisplay, &major, &minor) != True)
         return 0;
-    if (major < 1 || major == 1 && minor < 1)
+    if (major < 1 || (major == 1 && minor < 1))
         return 0;
     XScreenSaverSuspend(mDisplay, suspend);
     return 1;



More information about the MPlayer-cvslog mailing list