dix: silence compiler warning comparing CARD32 to -1
window.c:3246:36: warning: comparison of constant -1 with expression of type 'CARD32' (aka 'unsigned int') is always true [-Wtautological-constant-out-of-range-compare] if (optional->backingBitPlanes != ~0L) ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Michel Dänzer <michel@daenzer.net>
This commit is contained in:
parent
04ca169979
commit
96143d6dc3
|
@ -3243,7 +3243,7 @@ CheckWindowOptionalNeed(WindowPtr w)
|
|||
return;
|
||||
if (optional->userProps != NULL)
|
||||
return;
|
||||
if (optional->backingBitPlanes != ~0L)
|
||||
if (optional->backingBitPlanes != (CARD32)~0L)
|
||||
return;
|
||||
if (optional->backingPixel != 0)
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user