From b262e08555a5be355514224d3b47ae48ab447436 Mon Sep 17 00:00:00 2001 From: Maciej Żenczykowski Date: Sun, 28 Nov 2010 20:55:20 +0800 Subject: [SIGNAL] Mark status as volatile in exitshell MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit trap.c: In function 'exitshell': trap.c:354: warning: variable 'status' might be clobbered by 'longjmp' or 'vfork' Signed-off-by: Maciej Żenczykowski Signed-off-by: Herbert Xu --- src/trap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/trap.c b/src/trap.c index 3d28485..17316c9 100644 --- a/src/trap.c +++ b/src/trap.c @@ -366,7 +366,7 @@ exitshell(void) { struct jmploc loc; char *p; - int status; + volatile int status; #ifdef HETIO hetio_reset_term(); -- cgit 1.4.1