[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] Please fix the build with gcc 8.1
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-tar] Please fix the build with gcc 8.1 |
Date: |
Fri, 03 Aug 2018 13:33:03 +0300 |
Hi Paul,
The ioctl code needs a good rewrite indeed. However, I'm more concerned
about that:
> /usr/include/bits/socket.h: In function ‘__cmsg_nxthdr’:
> /usr/include/bits/socket.h:315:12: error: cast increases required alignment
> of target type [-Werror=cast-align]
> __cmsg = (struct cmsghdr *) ((unsigned char *) __cmsg
The minimal reproducible file is a one-liner:
#include <netdb.h>
Running
gcc-8 -Wsystem-headers -Wcast-align=strict -Werror -O2 -c 1.c
produces the error above.
Regards,
Sergey