mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-29 06:50:07 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue