From 4e90abbc4d232082f3aac23a3a13b4d9b95f8c0b Mon Sep 17 00:00:00 2001 From: Anthony Iliopoulos Date: Fri, 12 Jan 2024 14:03:31 +0100 Subject: [PATCH] src/af_unix: drop unused offsetof macro definition The offsetof macro is causing compiler warnings since it is being redefined, but it is anyway not used, so drop it completely. Signed-off-by: Anthony Iliopoulos Reviewed-by: "Darrick J. Wong" Signed-off-by: Zorro Lang --- src/af_unix.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/af_unix.c b/src/af_unix.c index 41037ee4..89df7658 100644 --- a/src/af_unix.c +++ b/src/af_unix.c @@ -17,8 +17,6 @@ #include #include -#define offsetof(TYPE, MEMBER) ((size_t)&((TYPE *)0)->MEMBER) - int main(int argc, char *argv[]) { struct sockaddr_un sun; -- 2.39.5