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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is to suppress a compilation warning when compiling against
newer X Servers.

Signed-off-by: Kevin Brace <kevinbrace@xxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux