[PATCH xf86-video-mga 4/4] Suppression of a compilation error when XAA is not in use

Kevin Brace kevinbrace at gmx.com
Mon Nov 26 19:15:34 UTC 2018


Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
---
 src/mga.h     | 3 ++-
 src/mga_arc.c | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/mga.h b/src/mga.h
index f47b0af..1a7cb47 100644
--- a/src/mga.h
+++ b/src/mga.h
@@ -737,8 +737,9 @@ Bool mgaExaInit(ScreenPtr pScreen);
 
 Bool MGAHWCursorInit(ScreenPtr pScreen);
 
-
+#ifdef USE_XAA
 void MGAPolyArcThinSolid(DrawablePtr, GCPtr, int, xArc*);
+#endif /* USE_XAA */
 
 Bool MGADGAInit(ScreenPtr pScreen);
 
diff --git a/src/mga_arc.c b/src/mga_arc.c
index 61ade3b..3c9dd42 100644
--- a/src/mga_arc.c
+++ b/src/mga_arc.c
@@ -59,6 +59,7 @@ in this Software without prior written authorization from The Open Group.
 	OUTREG(MGAREG_YDSTLEN + MGAREG_EXEC, ((y) << 16) | 1); \
 }
 
+#ifdef USE_XAA
 static void
 MGAZeroArc(
     DrawablePtr pDraw,
@@ -220,4 +221,5 @@ MGAPolyArcThinSolid (
 	    miPolyArc(pDraw, pGC, 1, arc);
     }
 }
+#endif /* USE_XAA */
 
-- 
2.7.4



More information about the xorg-devel mailing list