|
From: | Paul Eggert |
Subject: | Re: [Bug-tar] Please fix the build with gcc 8.1 |
Date: | Fri, 3 Aug 2018 03:48:07 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
Sergey Poznyakoff wrote:
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 *) __cmsgThe minimal reproducible file is a one-liner: #include <netdb.h> Runninggcc-8 -Wsystem-headers -Wcast-align=strict -Werror -O2 -c 1.cproduces the error above.
Although that's annoying, it's a false alarm, since the code properly aligns the pointer before using it by using CMSG_ALIGN. The warning in rtapelib.c, though, is not so obviously a false alarm.
[Prev in Thread] | Current Thread | [Next in Thread] |