Skip to content
Commit e1052a0f authored by Jim Shu's avatar Jim Shu Committed by Andrew Boie
Browse files

tests/kernel/fatal: add volatile to prevent compiler optimization



Initialization of local variable 'illegal' can't be optimized, or the
program will jump to the memory contains random value which causes the
unexpected behavior. Add volatile to local variable 'illegal' to prevent
compiler optimization.

Signed-off-by: default avatarJim Shu <cwshu@andestech.com>
parent 011da8c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment