diff options
author | dillon <dillon@FreeBSD.org> | 1998-12-14 05:34:33 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1998-12-14 05:34:33 +0000 |
commit | 2d7053a5cccfba39ef4fc12a781d476cf49c86f9 (patch) | |
tree | 05b787a70203df25dddb06cc949c4c1b4c026a04 /sys/amd64 | |
parent | 0f62a568db21ef3c3ba5af9522cbb553b863105a (diff) | |
download | FreeBSD-src-2d7053a5cccfba39ef4fc12a781d476cf49c86f9.zip FreeBSD-src-2d7053a5cccfba39ef4fc12a781d476cf49c86f9.tar.gz |
Change local ddb_mode variable to volatile to handle GCC warning about
the variable possibly being clobbered by setjmp/longjmp.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/db_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/db_interface.c b/sys/amd64/amd64/db_interface.c index 3f5f893..0b53ed23 100644 --- a/sys/amd64/amd64/db_interface.c +++ b/sys/amd64/amd64/db_interface.c @@ -23,7 +23,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: db_interface.c,v 1.40 1998/06/08 08:43:20 dfr Exp $ + * $Id: db_interface.c,v 1.41 1998/06/08 09:23:24 dfr Exp $ */ /* @@ -69,7 +69,7 @@ kdb_trap(type, code, regs) int type, code; register struct i386_saved_state *regs; { - int ddb_mode = !(boothowto & RB_GDB); + volatile int ddb_mode = !(boothowto & RB_GDB); /* * XXX try to do nothing if the console is in graphics mode. |