summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-05 18:53:48 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-05 18:53:48 -0800
commit2352780cd7a19bc9562b33676d2598e522e37def (patch)
treed66c019cbd4c200038a8518f9f82cd9977c08c11 /src
parent70582d8282ce8ff4a604ac337a047da3e3cf6230 (diff)
Handle 2 -Wdeclaration-after-statement warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r--src/ast_driver.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/ast_driver.c b/src/ast_driver.c
index 57a859c..8bb7f4f 100644
--- a/src/ast_driver.c
+++ b/src/ast_driver.c
@@ -861,9 +861,11 @@ ASTScreenInit(SCREEN_INIT_ARGS_DECL)
}
#if !(defined(__sparc__)) && !(defined(__mips__))
- vgaHWPtr hwp;
- hwp = VGAHWPTR(pScrn);
- vgaHWSetMmioFuncs(hwp, pAST->MMIOVirtualAddr, 0);
+ {
+ vgaHWPtr hwp;
+ hwp = VGAHWPTR(pScrn);
+ vgaHWSetMmioFuncs(hwp, pAST->MMIOVirtualAddr, 0);
+ }
#endif
vFillASTModeInfo (pScrn);
@@ -1795,11 +1797,13 @@ ASTModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode)
if (!ASTSetMode(pScrn, mode))
return FALSE;
#else
- vgaHWPtr hwp;
+ {
+ vgaHWPtr hwp;
- hwp = VGAHWPTR(pScrn);
+ hwp = VGAHWPTR(pScrn);
- vgaHWUnlock(hwp);
+ vgaHWUnlock(hwp);
+ }
if (!vgaHWInit(pScrn, mode))
return FALSE;