This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 2a74ba2b11818b54c83ccb82e2e738513581c9d4 Author: v-zhangxiaomeng5 <[email protected]> AuthorDate: Fri Jul 17 17:38:55 2026 +0800 testing/mm/memstress: zero-init thread context GCC 15's stronger analysis flags this via -Werror=maybe-uninitialized. Zero-initialize the thread context at declaration. Signed-off-by: v-zhangxiaomeng5 <[email protected]> --- testing/mm/memstress/memorystress_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testing/mm/memstress/memorystress_main.c b/testing/mm/memstress/memorystress_main.c index 59ceae7c4..32b267023 100644 --- a/testing/mm/memstress/memorystress_main.c +++ b/testing/mm/memstress/memorystress_main.c @@ -479,7 +479,10 @@ static void thread_init(FAR struct memorystress_thread_context_s *context, FAR void *memorystress_thread(FAR void *arg) { FAR struct memorystress_global_s *global; - struct memorystress_thread_context_s context; + struct memorystress_thread_context_s context = + { + 0 + }; global = (FAR struct memorystress_global_s *)arg; thread_init(&context, global);
