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 | |
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 '')
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/trap.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index c4dfa33..13572bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-11-28 Maciej Żenczykowski <zenczykowski@gmail.com> + + * Mark status as volatile in exitshell. + 2010-11-28 Jonathan Nieder <jrnieder@gmail.com> * Use EXEXIT in place of EXEXEC. 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(); |