aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-07-08 16:16:11 +0800
committermaximilian attems <max@stro.at>2012-07-02 10:44:45 +0200
commitd182c7440dd5cd9290f2fb8dd7bc0f9dc2c4cb83 (patch)
treea66f9e0a2caf3a8abefd4b8d6267fc58af6ce969
parentcf9ea962f1fb310a92efd184f14df2c04b30f75a (diff)
downloadklibc-d182c7440dd5cd9290f2fb8dd7bc0f9dc2c4cb83.tar.gz
[klibc] [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> Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r--usr/dash/memalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/dash/memalloc.c b/usr/dash/memalloc.c
index 9fea06796168f..d8e4413d69dae 100644
--- a/usr/dash/memalloc.c
+++ b/usr/dash/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;