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>
This commit is contained in:
Jeremy Huddleston 2011-04-23 20:39:25 -07:00
parent fd086f87cd
commit ab81aa9140

View File

@ -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++;
}