diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-07 09:44:33 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-07 09:46:17 -0800 |
commit | 8fd006f2e16c6cadd78785501c701fbb1a64c053 (patch) | |
tree | 48b36c573e2deee2919ce3e7ad56ec60b6284943 | |
parent | 6f3bbdbbeebc126253a6177438a6eafc617935e1 (diff) |
i128_driver.c: In function ‘I128PreInit’:
i128_driver.c:582:13: warning: declaration of ‘from’ shadows a previous local [-Wshadow]
582 | int from = X_DEFAULT;
| ^~~~
i128_driver.c:440:17: note: shadowed declaration is here
440 | MessageType from;
| ^~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/i128_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i128_driver.c b/src/i128_driver.c index 50d214c..b1f3a40 100644 --- a/src/i128_driver.c +++ b/src/i128_driver.c @@ -579,8 +579,8 @@ I128PreInit(ScrnInfoPtr pScrn, int flags) pI128->NoAccel = TRUE; xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "Acceleration disabled\n"); } else { - int from = X_DEFAULT; const char *s = xf86GetOptValString(pI128->Options, OPTION_ACCELMETHOD); + from = X_DEFAULT; pI128->NoAccel = FALSE; if (!xf86NameCmp(s, "EXA")) { pI128->exa = TRUE; |