diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-04-23 20:39:25 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-04-25 10:45:34 -0700 |
commit | ab81aa91404ca0fa6843ce8021cbd9de42255a8f (patch) | |
tree | da0ef8b6e9c771d0beae6f311468a1c63b2bba6f /Xext | |
parent | fd086f87cd1bab53c9e918cb687009e7ac8718d8 (diff) |
Xext: Silence warnings when building with clang
xvmain.c:1113:22: warning: equality comparison with extraneous parentheses [-Wparentheses]
if ((pf->depth == pDraw->depth)
~~~~~~~~~~^~~~~~~~~~~~~~~
xvmain.c:1113:22: note: use '=' to turn this equality comparison into an assignment
if ((pf->depth == pDraw->depth)
^~
=
xvmain.c:1113:22: note: remove extraneous parentheses around the comparison to silence this warning
if ((pf->depth == pDraw->depth)
~ ^ ~
1 warning generated.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Diffstat (limited to 'Xext')
-rw-r--r-- | Xext/xvmain.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Xext/xvmain.c b/Xext/xvmain.c index cd6f0979c..d21a56c3e 100644 --- a/Xext/xvmain.c +++ b/Xext/xvmain.c @@ -1110,12 +1110,7 @@ XvdiMatchPort( while (nf--) { - if ((pf->depth == pDraw->depth) -#if 0 - && ((pDraw->type == DRAWABLE_PIXMAP) || - (wVisual(((WindowPtr)pDraw)) == pf->visual)) -#endif - ) + if (pf->depth == pDraw->depth) return Success; pf++; } |