[klibc] [klibc:master] [MEMALLOC] Avoid clang warning about dead store to "size"

klibc-bot for Jim Meyering meyering at redhat.com
Mon Jul 2 02:12:05 PDT 2012


Commit-ID:  d182c7440dd5cd9290f2fb8dd7bc0f9dc2c4cb83
Gitweb:     http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=d182c7440dd5cd9290f2fb8dd7bc0f9dc2c4cb83
Author:     Jim Meyering <meyering at redhat.com>
AuthorDate: Fri, 8 Jul 2011 16:16:11 +0800
Committer:  maximilian attems <max at stro.at>
CommitDate: Mon, 2 Jul 2012 10:44:45 +0200

[klibc] [MEMALLOC] Avoid clang warning about dead store to "size"

* src/memalloc.c (makestrspace): Remove dead store.

Signed-off-by: Jim Meyering <meyering at redhat.com>
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: maximilian attems <max at stro.at>

---
 usr/dash/memalloc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/dash/memalloc.c b/usr/dash/memalloc.c
index 9fea067..d8e4413 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;


More information about the klibc mailing list