Skip to contentSkip to conversation

Declare a variable only when XSERVER_LIBPCIACCESS is defined

PATCH New Kevin Brace 1 participant 1 message Dec 6, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Declare a variable only when XSERVER_LIBPCIACCESS is defined

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

---
 src/i740_driver.c | 2 ++
 1 file changed, 2 insertions(+)
src/i740_driver.c +2 -0
index 7c1051d..a3675b6 100644
@@ -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);
Signature · 6 lines
2.7.4

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx