Declare a variable only when XSERVER_LIBPCIACCESS is defined
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.
Signed-off-by Kevin Brace <[email protected]>
--- src/i740_driver.c | 2 ++ 1 file changed, 2 insertions(+)
src/i740_driver.c +2 -0
@@ -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