commit | e1052a0f8d88af185099f4839f87c8c7e0ae11d9 | [log] [tgz] |
---|---|---|
author | Jim Shu <cwshu@andestech.com> | Tue Jan 21 18:03:33 2020 +0800 |
committer | Andrew Boie <andrewboie@gmail.com> | Wed Jan 22 07:08:12 2020 -0800 |
tree | 15bba5de536b0d672f7abda44bf5a80969664f2d | |
parent | 011da8c1b0e1d1dfe168c6b0e54a90d47530642e [diff] |
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: Jim Shu <cwshu@andestech.com>