Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 4/6] strict compilers don't like pointers that get set but are never used
- X-seq: zsh-workers 32734
- From: Nikolas Garofil <nikolas@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 4/6] strict compilers don't like pointers that get set but are never used
- Date: Sat, 7 Jun 2014 19:18:53 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=QYTi2pYWBaDyjUh5J2mpp0dPvNkHbcA8wu1xl5EM2Dk=; b=GoUD4mBqT13wyd3Tc/nFPsFyWeCyNkfzoFDp0QfrHBo4i3csbvksDaLo/3jBk2jwBI J9C+Ks1XROhNUyXDucWkHu0UV4uEZG0k5YYoa4XguX6JKT/SZeluYHs/Ue5oE3NZimAu YtZhfankkBVkuZO/x2idYRZozmSYd4Z7N5G+cFD5TjFCvWEzHc6szE1fOJoS6mTjNmUq U9EDHQJ+a83vvMcDqePEKCWe7A1HrTvVtXsXqeavKAO2Snov0A2WdAILFdJXdRp+0NF2 pkLePVauu7vrLFIN7rSimYQL56FTtcpe/2vIkSiO3Y8Dcx+s6AeaI/rN+/M6w3uYZYe9 mDWg==
- In-reply-to: <1402161535-20756-1-git-send-email-nikolas@garofil.be>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1402161535-20756-1-git-send-email-nikolas@garofil.be>
- Sender: Nikolas Garofil <nikolas.garofil@xxxxxxxxx>
---
Src/mem.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Src/mem.c b/Src/mem.c
index a7f11a6..f198177 100644
--- a/Src/mem.c
+++ b/Src/mem.c
@@ -1508,7 +1508,7 @@ zsfree(char *p)
MALLOC_RET_T
realloc(MALLOC_RET_T p, MALLOC_ARG_T size)
{
- struct m_hdr *m = (struct m_hdr *)(((char *)p) - M_ISIZE), *mp, *mt;
+ struct m_hdr *m = (struct m_hdr *)(((char *)p) - M_ISIZE), *mt;
char *r;
int i, l = 0;
@@ -1524,10 +1524,10 @@ realloc(MALLOC_RET_T p, MALLOC_ARG_T size)
/* check if we are reallocating a small block, if we do, we have
to compute the size of the block from the sort of block it is in */
for (i = 0; i < M_NSMALL; i++) {
- for (mp = NULL, mt = m_small[i];
+ for (mt = m_small[i];
mt && (((char *)mt) > ((char *)p) ||
(((char *)mt) + mt->len) < ((char *)p));
- mp = mt, mt = mt->next);
+ mt = mt->next);
if (mt) {
l = M_BSLEN(mt->len);
--
1.8.3.2
Messages sorted by:
Reverse Date,
Date,
Thread,
Author