arm: cortex-m: initialise ptr_esf in get_esf() in fault.c.
This was producing a -Wsometimes-uninitialized warning. Signed-off-by: Chris Reed <chris.reed@arm.com>
This commit is contained in:
parent
f523c336ef
commit
6d2b91461b
1 changed files with 1 additions and 1 deletions
|
@ -849,7 +849,7 @@ static inline z_arch_esf_t *get_esf(uint32_t msp, uint32_t psp, uint32_t exc_ret
|
|||
bool *nested_exc)
|
||||
{
|
||||
bool alternative_state_exc = false;
|
||||
z_arch_esf_t *ptr_esf;
|
||||
z_arch_esf_t *ptr_esf = NULL;
|
||||
|
||||
*nested_exc = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue