From cb2d13d8b19139a5963bfda65486bd97bc5831ab Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 10 Mar 2025 11:57:13 +0100 Subject: [PATCH] drop ER_SETFOCUS event result It's no longer used and the uninitialized u.focus field is triggering errors in static analysis. --- newt_pr.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/newt_pr.h b/newt_pr.h index 5d60ebe..98f41e5 100644 --- a/newt_pr.h +++ b/newt_pr.h @@ -46,13 +46,9 @@ struct newtComponent_struct { void * data; } ; -enum eventResultTypes { ER_IGNORED, ER_SWALLOWED, ER_EXITFORM, ER_SETFOCUS, - ER_NEXTCOMP }; +enum eventResultTypes { ER_IGNORED, ER_SWALLOWED, ER_EXITFORM, ER_NEXTCOMP }; struct eventResult { enum eventResultTypes result; - union { - newtComponent focus; - } u; }; enum eventTypes { EV_FOCUS, EV_UNFOCUS, EV_KEYPRESS, EV_MOUSE }; -- 2.47.2