summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-15 13:46:20 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-17 10:59:31 -0800
commitebd49ed66ad8c90a85df0f4a5986973211b35978 (patch)
tree302cd83d51f07f703e04df2d5b4eee949d94c7ef
parentf644fbeab36e7c5887b1c047ab41df7411845286 (diff)
Fix warning: ‘pScrn’ is used uninitialized [-Wuninitialized]HEADmaster
In file included from leo.h:35, from leo_driver.c:38: leo_driver.c: In function ‘LeoFreeScreen’: compat-api.h:71:41: warning: ‘pScrn’ is used uninitialized [-Wuninitialized] 71 | #define SCRN_INFO_PTR(arg1) ScrnInfoPtr pScrn = (arg1) | ^~~~~ leo_driver.c:653:5: note: in expansion of macro ‘SCRN_INFO_PTR’ 653 | SCRN_INFO_PTR(pScrn); | ^~~~~~~~~~~~~ compat-api.h:71:41: note: ‘pScrn’ was declared here 71 | #define SCRN_INFO_PTR(arg1) ScrnInfoPtr pScrn = (arg1) | ^~~~~ leo_driver.c:653:5: note: in expansion of macro ‘SCRN_INFO_PTR’ 653 | SCRN_INFO_PTR(pScrn); | ^~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/leo_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leo_driver.c b/src/leo_driver.c
index f6fc87c..2c1d505 100644
--- a/src/leo_driver.c
+++ b/src/leo_driver.c
@@ -650,7 +650,7 @@ LeoCloseScreen(CLOSE_SCREEN_ARGS_DECL)
static void
LeoFreeScreen(FREE_SCREEN_ARGS_DECL)
{
- SCRN_INFO_PTR(pScrn);
+ SCRN_INFO_PTR(arg);
LeoFreeRec(pScrn);
}