4.1.x gcc 9 compilation warnings
With Fedora 30 there was a migration to gcc 9.
In reviewing the build logs it looks like there are new warnings. A snippet of the log entries (full log is attached):
make2: Leaving directory '/builddir/build/BUILD/suricata-4.1.2/src'
BUILDSTDERR: In file included from decode.h:81,
BUILDSTDERR: from detect-engine-alert.h:28,
BUILDSTDERR: from suricata-common.h:453,
BUILDSTDERR: from alert-unified2-alert.c:30:
BUILDSTDERR: alert-unified2-alert.c: In function 'Unified2PrintStreamSegmentCallback':
BUILDSTDERR: decode-ipv6.h:54:51: warning: taking address of packed member of 'struct IPV6Hdr_' may result in an unaligned pointer value [-Waddress-of-packed-member]
BUILDSTDERR: 54 | #define s_ip6_addrs ip6_hdrun2.ip6_addrs
BUILDSTDERR: alert-unified2-alert.c:581:60: note: in expansion of macro 's_ip6_addrs'
BUILDSTDERR: 581 | fakehdr->tcph.th_sum = TCPV6Checksum(fakehdr->ip6h.s_ip6_addrs,
BUILDSTDERR: | ^~~~~~~~~
BUILDSTDERR: alert-unified2-alert.c:582:29: warning: taking address of packed member of 'struct _FakeIPv6Hdr' may result in an unaligned pointer value [-Waddress-of-packed-member]