From: Anthony Iliopoulos Date: Fri, 12 Jan 2024 13:03:31 +0000 (+0100) Subject: src/af_unix: drop unused offsetof macro definition X-Git-Tag: v2024.02.09~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4e90abbc4d232082f3aac23a3a13b4d9b95f8c0b;p=xfstests-dev.git 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 --- 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;