diff options
Diffstat (limited to 'common/panic_output.c')
-rw-r--r-- | common/panic_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/panic_output.c b/common/panic_output.c index e54cb0caf8..e6b48a375d 100644 --- a/common/panic_output.c +++ b/common/panic_output.c @@ -164,12 +164,12 @@ static int command_crash(int argc, char **argv) if (!strcasecmp(argv[1], "assert")) { ASSERT(0); } else if (!strcasecmp(argv[1], "divzero")) { - int zero = 0; + volatile int zero = 0; cflush(); ccprintf("%08x", (long)1 / zero); } else if (!strcasecmp(argv[1], "udivzero")) { - int zero = 0; + volatile int zero = 0; cflush(); ccprintf("%08x", (unsigned long)1 / zero); |