src/af_unix: drop unused offsetof macro definition
PATCH 1/1 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 <[email protected]>
--- src/af_unix.c | 2 -- 1 file changed, 2 deletions(-)
src/af_unix.c +0 -2
@@ -17,8 +17,6 @@#include <sys/socket.h> #include <sys/un.h> -#define offsetof (TYPE ,MEMBER ) ((size_t)&((TYPE *)0)->MEMBER) -int main (int argc,char *argv[]) {struct sockaddr_un sun;
Signature · 1 line
2.41.0
Quoted 4 lines · Anthony Iliopoulos
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 <[email protected]>
Reviewed-by Darrick J. Wong <[email protected]>
--D
Quoted 21 lines
--- src/af_unix.c | 2 -- 1 file changed, 2 deletions(-)src/af_unix.c +0
-2@@ -17,8 +17,6 @@#include <sys/socket.h> #include <sys/un.h> -#define offsetof (TYPE ,MEMBER ) ((size_t)&((TYPE *)0)->MEMBER) -int main (int argc,char *argv[]) {struct sockaddr_un sun;Signature · 1 line
2.41.0