From 2352780cd7a19bc9562b33676d2598e522e37def Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 5 Jan 2024 18:53:48 -0800 Subject: Handle 2 -Wdeclaration-after-statement warnings Signed-off-by: Alan Coopersmith --- src/ast_driver.c | 16 ++++++++++------ 1 file 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; -- cgit v1.2.3