summaryrefslogtreecommitdiff
path: root/src/i830_driver.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-03-17 16:59:12 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2008-03-18 09:24:58 +0800
commitd72e18c10995079121eded758a60ed99b5b8ce1a (patch)
tree1716125826cd2f6bc12dd342ad7e316ccc65c661 /src/i830_driver.c
parent81df48d8d151907c2e9dd33a729860c39aa78175 (diff)
Compile warning fixes.
Move some declarations and don't declare an extra variable with the same name, to fix warnings about mixed declarations and code.
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r--src/i830_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index e1ab5364..d5b260c4 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -1479,7 +1479,7 @@ I830PreInit(ScrnInfoPtr pScrn, int flags)
pI830->useEXA = FALSE;
#endif
#if defined(I830_USE_XAA) && defined(I830_USE_EXA)
- int from = X_DEFAULT;
+ from = X_DEFAULT;
if ((s = (char *)xf86GetOptValString(pI830->Options,
OPTION_ACCELMETHOD))) {
if (!xf86NameCmp(s, "EXA")) {