---- On Tue, 27 Jul 2021 17:49:27 +0200 Seebs <se...@seebs.net> wrote ---- > On Tue, 27 Jul 2021 13:49:03 +0200 > "Damian Wrobel" <dwro...@ertelnet.rybnik.pl> wrote: > > > -# no-strict-aliasing is needed for the function pointer trickery. > > pseudo_wrappers.o: $(GUTS) pseudo_wrappers.c pseudo_wrapfuncs.c > > pseudo_wrapfuncs.h pseudo_tables.h > > - $(CC) -fno-strict-aliasing $(CFLAGS) $(CFLAGS_PSEUDO) > > -D_GNU_SOURCE -c -o pseudo_wrappers.o pseudo_wrappers.c > > I would be really uncomfortable relying on that not being needed, even > if it happened to work in specific cases. The function pointer trickery > is black magic and very much undefined behavior, and warning the > compiler away from it seems reasonably likely to be advantageous. Based on my experience, It's usually better to see this warning and fix the code instead of relying on the back magic. -- Regards, Damian > > -s > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#154173): https://lists.openembedded.org/g/openembedded-core/message/154173 Mute This Topic: https://lists.openembedded.org/mt/84479676/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-