diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-07-25 19:13:06 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-07-25 19:15:07 -0700 |
commit | 94d6ea61377220d937eb5da9ef99e95fc6356b90 (patch) | |
tree | 557577650866949073c41b5c154c1fb5aa480c12 /src | |
parent | b9f256b16f74b898d311c0ca310afc75456b73c9 (diff) |
riva_xaa: don't build RivaSetRopPattern when XAA is not supported
Fixes gcc warnings:
riva_xaa.c: In function ‘RivaSetRopPattern’:
riva_xaa.c:94:33: warning: implicit declaration of function
‘XAAGetPatternROP’; did you mean ‘RivaSetPattern’?
[-Wimplicit-function-declaration]
pRiva->riva.Rop->Rop3 = XAAGetPatternROP(rop);
^~~~~~~~~~~~~~~~
RivaSetPattern
At top level:
riva_xaa.c:89:1: warning: ‘RivaSetRopPattern’ defined but not used
[-Wunused-function]
RivaSetRopPattern(RivaPtr pRiva, int rop)
^~~~~~~~~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/riva_xaa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/riva_xaa.c b/src/riva_xaa.c index 3139d07..8d3d15f 100644 --- a/src/riva_xaa.c +++ b/src/riva_xaa.c @@ -85,6 +85,7 @@ RivaSetRopSolid(RivaPtr pRiva, int rop) } } +#ifdef HAVE_XAA_H static void RivaSetRopPattern(RivaPtr pRiva, int rop) { @@ -94,7 +95,7 @@ RivaSetRopPattern(RivaPtr pRiva, int rop) pRiva->riva.Rop->Rop3 = XAAGetPatternROP(rop); } } -#ifdef HAVE_XAA_H + /* * Fill solid rectangles. */ |