From 5627a322e59bb5a39e4f2fbb410c448e01081250 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 12 May 2010 15:53:35 -0700 Subject: [PATCH] complex.c: fix warnings Clean up warnings, even though this is sample code. Signed-off-by: H. Peter Anvin --- com32/cmenu/complex.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/com32/cmenu/complex.c b/com32/cmenu/complex.c index 905aaee..b80005d 100644 --- a/com32/cmenu/complex.c +++ b/com32/cmenu/complex.c @@ -100,6 +100,8 @@ t_handler_return login_handler(t_menusystem * ms, t_menuitem * mi) int nc, nr; t_handler_return rv; + (void)ms; + if (mi->item == loginstr) { /* User wants to login */ if (getscreensize(1, &nr, &nc)) { /* Unknown screen size? */ @@ -138,6 +140,7 @@ t_handler_return login_handler(t_menusystem * ms, t_menuitem * mi) } rv.valid = 0; rv.refresh = 1; + rv.reserved = 0; return rv; } @@ -241,6 +244,7 @@ t_handler_return checkbox_handler(t_menusystem * ms, t_menuitem * mi) rv.valid = 0; rv.refresh = 1; + rv.reserved = 0; return rv; } -- 2.7.4