Yo Hal! On Mon, 25 Aug 2025 20:48:55 -0700 Hal Murray via devel <devel@ntpsec.org> wrote:
> Anybody understand this one? Yeah. Type Cassting is now considered suspect, if not totally bad. > That's running on a Pi 1, with -O3 > cc (Raspbian 6.3.0-18+rpi1+deb9u1) 6.3.0 20170516 > Raspbian GNU/Linux 9 (stretch) 9.13 > No warning with -O1 > > ../../ntpd/ntp_util.c:566:2: warning: dereferencing type-punned > pointer will break strict-aliasing rules [-Wstrict-aliasing] > > refid_t refid = *(const uint32_t*)rbufp->pkt.refid; include/recvbuff.h: struct parsed_pkt pkt; /* host-order copy of data from wire */ pkt is NOT a (const uint32_t *) RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703 g...@rellim.com Tel:+1 541 382 8588 Veritas liberabit vos. -- Quid est veritas? "If you can't measure it, you can't improve it." - Lord Kelvin
pgpGA84j0Ui76.pgp
Description: OpenPGP digital signature
_______________________________________________ devel mailing list devel@ntpsec.org https://lists.ntpsec.org/mailman/listinfo/devel