summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-06-15 11:11:39 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-06-15 11:11:39 +0000
commitf7867644cb3f4e4f6aedb82b638311158d3d7487 (patch)
tree29f4c127062e46fc49971f9acc390596a3e626c1 /libvo
parent9b5ec0b047a4cf17dc29792d66c64f1300919671 (diff)
downloadmpv-f7867644cb3f4e4f6aedb82b638311158d3d7487.tar.bz2
mpv-f7867644cb3f4e4f6aedb82b638311158d3d7487.tar.xz
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 || git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27061 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index d2d58b5c12..75ace911e8 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -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;