[Intel-gfx] [PATCH xf86-video-i740] Declare a variable only when XSERVER_LIBPCIACCESS is defined
Kevin Brace
kevinbrace at gmx.com
Thu Dec 6 23:18:12 UTC 2018
This is to suppress a compilation warning when compiling against
newer X Servers.
Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
---
src/i740_driver.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/i740_driver.c b/src/i740_driver.c
index 7c1051d..a3675b6 100644
--- a/src/i740_driver.c
+++ b/src/i740_driver.c
@@ -780,7 +780,9 @@ I740PreInit(ScrnInfoPtr pScrn, int flags) {
static Bool I740MapMem(ScrnInfoPtr pScrn)
{
+#ifndef XSERVER_LIBPCIACCESS
int mmioFlags;
+#endif
I740Ptr pI740;
pI740 = I740PTR(pScrn);
--
2.7.4
More information about the Intel-gfx
mailing list