diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2011-02-23 00:27:12 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2011-02-23 00:27:12 +0000 |
commit | d9a4b0ab00e9262411d2420f33f067d484431520 (patch) | |
tree | c644835cafa72158d5393f99ce4971c7b2d1a501 | |
parent | f72418c876d48241a14fc9afdd4dad17881263a1 (diff) | |
download | strace-d9a4b0ab00e9262411d2420f33f067d484431520.tar.gz |
Fix compilation warning reported by gcc -Wunused-but-set-variable
* process.c (printwaitn) [!SUNOS4]: Do not define "exited" variable.
-rw-r--r-- | process.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1898,7 +1898,9 @@ static int printwaitn(struct tcb *tcp, int n, int bitness) { int status; +#ifdef SUNOS4 int exited = 0; +#endif if (entering(tcp)) { #ifdef LINUX @@ -1928,7 +1930,10 @@ printwaitn(struct tcb *tcp, int n, int bitness) else if (umove(tcp, tcp->u_arg[1], &status) < 0) tprintf("[?]"); else - exited = printstatus(status); +#ifdef SUNOS4 + exited = +#endif + printstatus(status); /* options */ tprintf(", "); printflags(wait4_options, tcp->u_arg[2], "W???"); |