From 98848ba89a078dc71bbaf7a2af052e2e0b14af3a Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 14 Dec 1998 05:34:33 +0000 Subject: [PATCH] Change local ddb_mode variable to volatile to handle GCC warning about the variable possibly being clobbered by setjmp/longjmp. --- sys/amd64/amd64/db_interface.c | 4 ++-- sys/i386/i386/db_interface.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/amd64/amd64/db_interface.c b/sys/amd64/amd64/db_interface.c index 3f5f893a677c..0b53ed233f55 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. diff --git a/sys/i386/i386/db_interface.c b/sys/i386/i386/db_interface.c index 3f5f893a677c..0b53ed233f55 100644 --- a/sys/i386/i386/db_interface.c +++ b/sys/i386/i386/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.