diff options
author | Maciej Żenczykowski <zenczykowski@gmail.com> | 2010-11-28 20:55:20 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-11-28 20:55:20 +0800 |
commit | b262e08555a5be355514224d3b47ae48ab447436 (patch) | |
tree | 29a84a864a96c3398d19405e65d6ae5a3eec2913 /src | |
parent | [BUILTIN] Stop documenting EXSHELLPROC (diff) | |
download | dash-b262e08555a5be355514224d3b47ae48ab447436.tar.gz dash-b262e08555a5be355514224d3b47ae48ab447436.zip |
[SIGNAL] Mark status as volatile in exitshell
trap.c: In function 'exitshell': trap.c:354: warning: variable 'status' might be clobbered by 'longjmp' or 'vfork' Signed-off-by: Maciej Żenczykowski <zenczykowski@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'src')
-rw-r--r-- | src/trap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |