diff options
author | Maciej Żenczykowski <zenczykowski@gmail.com> | 2010-11-28 20:55:20 +0800 |
---|---|---|
committer | maximilian attems <max@stro.at> | 2011-06-03 18:44:13 +0200 |
commit | ed7b1cc8058abb9cb3c41755421a2bd27ecb8987 (patch) | |
tree | 93023b3c5604dff63f005dc7d8f21106289edf0c | |
parent | 3dbe4280553deececb43b42febcdbbc7e2419ed9 (diff) | |
download | klibc-ed7b1cc8058abb9cb3c41755421a2bd27ecb8987.tar.gz |
[klibc] [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>
Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r-- | usr/dash/trap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/dash/trap.c b/usr/dash/trap.c index 0014a1399f48b..1e2a867742ddf 100644 --- a/usr/dash/trap.c +++ b/usr/dash/trap.c @@ -365,7 +365,7 @@ exitshell(void) { struct jmploc loc; char *p; - int status; + volatile int status; #ifdef HETIO hetio_reset_term(); |