]> git.ozlabs.org Git - ccan-lca-2011.git/commitdiff
talloc: fix gcc -O3 aliasing warnings
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 3 Nov 2010 00:16:42 +0000 (10:46 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 3 Nov 2010 00:16:42 +0000 (10:46 +1030)
A void * could point to anything, but a void ** can't point to any pointer.
So we use a void * and memcpy, which I believe is safe.


No differences found