[PATCH xf86-video-mga 3/9] hide conditionally used variable in mga_read_and_process_bios

Nicolas Kaiser nikai at nikai.net
Wed Jun 8 02:01:13 PDT 2011


Silences compile warning
"src/mga_bios.c:303: warning: unused variable 'rlen'"

Signed-off-by: Nicolas Kaiser <nikai at nikai.net>
---
 src/mga_bios.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mga_bios.c b/src/mga_bios.c
index b533dd1..e40bb86 100644
--- a/src/mga_bios.c
+++ b/src/mga_bios.c
@@ -299,8 +299,8 @@ Bool mga_read_and_process_bios( ScrnInfoPtr pScrn )
     MGAPtr pMga = MGAPTR(pScrn);
 #ifndef XSERVER_LIBPCIACCESS
     Bool pciBIOS = TRUE;
-#endif
     int rlen;
+#endif
     static const unsigned expected_length[] = { 0, 64, 64, 64, 128, 128 };
     unsigned version;
     unsigned pins_len;
-- 
1.7.5.3


More information about the xorg-devel mailing list