summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2022-05-24 00:23:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-05-24 22:58:31 (GMT)
commit98cdb61cab6cff3df9fc6b48b99df61965a1588c (patch)
treeb487e7ffb7241177cb1ecc7d00bbdcb2dbf99baf /compat
parenta6a243e94a1206964e25c14eeafb7d10b8d8cb5d (diff)
downloadgit-98cdb61cab6cff3df9fc6b48b99df61965a1588c.zip
git-98cdb61cab6cff3df9fc6b48b99df61965a1588c.tar.gz
git-98cdb61cab6cff3df9fc6b48b99df61965a1588c.tar.bz2
nedmalloc: avoid new compile error
GCC v12.x complains thusly: compat/nedmalloc/nedmalloc.c: In function 'DestroyCaches': compat/nedmalloc/nedmalloc.c:326:12: error: the comparison will always evaluate as 'true' for the address of 'caches' will never be NULL [-Werror=address] 326 | if(p->caches) | ^ compat/nedmalloc/nedmalloc.c:196:22: note: 'caches' declared here 196 | threadcache *caches[THREADCACHEMAXCACHES]; | ^~~~~~ ... and it is correct, of course. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r--compat/nedmalloc/nedmalloc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/compat/nedmalloc/nedmalloc.c b/compat/nedmalloc/nedmalloc.c
index edb438a..2c0ace7 100644
--- a/compat/nedmalloc/nedmalloc.c
+++ b/compat/nedmalloc/nedmalloc.c
@@ -323,7 +323,6 @@ static NOINLINE void RemoveCacheEntries(nedpool *p, threadcache *tc, unsigned in
}
static void DestroyCaches(nedpool *p) THROWSPEC
{
- if(p->caches)
{
threadcache *tc;
int n;