From 510ccc4ad50e9f2d4da096754e8807326dce9c4a Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 16 Jan 2020 13:55:28 +0000 Subject: [PATCH] capsule-malloc: Remove duplicate typedef for mstate I occasionally compile libcapsule with clang for better diagnostics. Redefining typedefs is a C11 feature, which clang 8 won't allow in C99 mode. Signed-off-by: Simon McVittie --- capsule/capsule-malloc.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/capsule/capsule-malloc.h b/capsule/capsule-malloc.h index 8a81583..9a76037 100644 --- a/capsule/capsule-malloc.h +++ b/capsule/capsule-malloc.h @@ -197,8 +197,6 @@ typedef struct _heap_info #define chunk_at_offset(p, s) ((mchunkptr) (((char *) (p)) + (s))) -typedef struct malloc_state *mstate; - #define NONCONTIGUOUS_BIT (2U) #define contiguous(M) (((M)->flags & NONCONTIGUOUS_BIT) == 0) #define noncontiguous(M) (((M)->flags & NONCONTIGUOUS_BIT) != 0) -- GitLab