mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 14:00:03 +01:00
Silence REGION_INIT() warning.
Evaluating the address of a BoxRec as a boolean gives this warning: i830_driver.c:2317: warning: the address of 'ScreenBox' will always evaluate as 'true' which is pretty annoying. This patch compares the address to NULL to avoid the pointer->bool conversion and gets rid of the warning. Seems like a lame hack, but the warning is worse.
This commit is contained in:
parent
cc05255191
commit
c7536f4b87
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ extern RegDataRec miBrokenData;
|
||||||
|
|
||||||
#define REGION_INIT(_pScreen, _pReg, _rect, _size) \
|
#define REGION_INIT(_pScreen, _pReg, _rect, _size) \
|
||||||
{ \
|
{ \
|
||||||
if (_rect) \
|
if ((_rect) != NULL) \
|
||||||
{ \
|
{ \
|
||||||
(_pReg)->extents = *(_rect); \
|
(_pReg)->extents = *(_rect); \
|
||||||
(_pReg)->data = (RegDataPtr)NULL; \
|
(_pReg)->data = (RegDataPtr)NULL; \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue