From: Miroslav Lichvar Date: Mon, 10 Mar 2025 10:57:13 +0000 (+0100) Subject: drop ER_SETFOCUS event result X-Git-Tag: r0-52-25~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cb2d13d8b19139a5963bfda65486bd97bc5831ab;p=thirdparty%2Fnewt.git drop ER_SETFOCUS event result It's no longer used and the uninitialized u.focus field is triggering errors in static analysis. --- 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 };