summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-07-08 16:16:11 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2011-07-08 16:16:11 +0800
commitb8612a8d4d3eea270794510f890d55347d601cbf (patch)
treeac2e8f06fbdef411cfd958188bb1a8f69aacc25e /src
parent[MEMALLOC] Avoid gcc warning: variable 'oldstackp' set but not used (diff)
downloaddash-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.c2
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;