From f1479f8bca78ccd59d1c3f82d017177cf9332ad9 Mon Sep 17 00:00:00 2001 From: Bernd Moessner Date: Wed, 3 Jan 2024 19:22:07 +0100 Subject: rtemslwip/sys_arch.c: Initialize variable This silences a warning that isn't actually a bug since the variable is set before use under a few layers of macro calls. --- rtemslwip/common/sys_arch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtemslwip/common/sys_arch.c b/rtemslwip/common/sys_arch.c index 2651c9c..b97404c 100644 --- a/rtemslwip/common/sys_arch.c +++ b/rtemslwip/common/sys_arch.c @@ -372,7 +372,7 @@ sys_request_irq(unsigned int irqnum, sys_irq_handler_t handler, sys_prot_t sys_arch_protect() { - sys_prot_t pval; + sys_prot_t pval = 0; #if RTEMS_SMP rtems_recursive_mutex_lock( &sys_arch_lock ); -- cgit v1.2.3