diff mbox series

[xf86-video-i740] Declare a variable only when XSERVER_LIBPCIACCESS is defined

Message ID 1544138292-11852-1-git-send-email-kevinbrace@gmx.com (mailing list archive)
State New, archived
Headers show
Series [xf86-video-i740] Declare a variable only when XSERVER_LIBPCIACCESS is defined | expand

Commit Message

Kevin Brace Dec. 6, 2018, 11:18 p.m. UTC
This is to suppress a compilation warning when compiling against
newer X Servers.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
---
 src/i740_driver.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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);