diff options
author | Jim Meyering <meyering@redhat.com> | 2011-07-08 16:16:11 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-07-08 16:16:11 +0800 |
commit | b8612a8d4d3eea270794510f890d55347d601cbf (patch) | |
tree | ac2e8f06fbdef411cfd958188bb1a8f69aacc25e /src | |
parent | [MEMALLOC] Avoid gcc warning: variable 'oldstackp' set but not used (diff) | |
download | dash-b8612a8d4d3eea270794510f890d55347d601cbf.tar.gz dash-b8612a8d4d3eea270794510f890d55347d601cbf.zip |
[MEMALLOC] Avoid clang warning about dead store to "size"
* src/memalloc.c (makestrspace): Remove dead store. Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'src')
-rw-r--r-- | src/memalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memalloc.c b/src/memalloc.c index 9fea067..d8e4413 100644 --- a/src/memalloc.c +++ b/src/memalloc.c @@ -273,7 +273,7 @@ char * makestrspace(size_t newlen, char *p) { size_t len = p - stacknxt; - size_t size = stackblocksize(); + size_t size; for (;;) { size_t nleft; |