From 94d6ea61377220d937eb5da9ef99e95fc6356b90 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 25 Jul 2022 19:13:06 -0700 Subject: riva_xaa: don't build RivaSetRopPattern when XAA is not supported MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/riva_xaa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/riva_xaa.c') 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. */ -- cgit v1.2.3