summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2018-12-06 14:53:12 -0800
committerKevin Brace <kevinbrace@gmx.com>2018-12-06 14:53:12 -0800
commitcca56a6eb27d3317575a405ebb7446b11d3a034d (patch)
tree6ad5b769c67ddeb5c7aa96c0421f3d7f04edd9b0
parent77346606a1b1bdb624ad7661de4008e6b0f63381 (diff)
Declare a variable only when XSERVER_LIBPCIACCESS is defined
This is to suppress a compilation warning when compiling against newer X Servers. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
-rw-r--r--src/i740_driver.c2
1 files changed, 2 insertions, 0 deletions
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);