From 1a75bd32b5ee12158724bb2767a70907fd33c65e Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Fri, 7 Mar 2008 19:09:48 -0300 Subject: [PATCH] Compile warning fixes. Don't declare variables not used when compiling with libpciaccess. --- src/fbdev.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/fbdev.c b/src/fbdev.c index df278f5..ef25317 100644 --- a/src/fbdev.c +++ b/src/fbdev.c @@ -353,7 +353,9 @@ FBDevProbe(DriverPtr drv, int flags) ScrnInfoPtr pScrn; GDevPtr *devSections; int numDevSections; +#ifndef XSERVER_LIBPCIACCESS int bus,device,func; +#endif char *dev; Bool foundScreen = FALSE; -- 1.5.4.3