This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] crypt: Fix strict aliasing warnings
- From: Paul Eggert <eggert at cs dot ucla dot edu>
- To: libc-alpha at sourceware dot org
- Date: Tue, 19 Jul 2011 10:29:40 -0700
- Subject: Re: [PATCH] crypt: Fix strict aliasing warnings
- References: <4E243C5F.5030708@redhat.com>
I suggest looking at how gnulib does it.
It's had a fix for this for some time.
It might help to compare notes.
http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/md5.c
and similarly for sha256.c, sha512.c.
The md5 fix, at least, is a bit more readable and avoids the
need for additional functions.