Add -Wno-error=stringop-truncation to CFLAGS when using GCC.
This fixes build when on GCC architectures.
Differential D20104 Authored by pkubaj on Apr 30 2019, 11:31 AM.
Details Summary Add -Wno-error=stringop-truncation to CFLAGS when using GCC. This fixes build when on GCC architectures.
Diff Detail
Event TimelineHarbormaster completed remote builds in B24000: Diff 56844.Apr 30 2019, 11:31 AM2019-04-30 11:31:43 (UTC+0) This revision is now accepted and ready to land.Apr 30 2019, 2:29 PM2019-04-30 14:29:18 (UTC+0) Closed by commit rP500555: www/squid: fix build with GCC-based architectures (authored by pkubaj). · Explain WhyApr 30 2019, 7:11 PM2019-04-30 19:11:00 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 56844 www/squid/Makefile
|
I think a_addr and a_mask should be struct sockaddr_strorage, not sockaddr. While sizeof(sockaddr) can be equal to sizeof(sockaddr_in), sizeof(sockaddr_in6) is always longer.