]> git.ozlabs.org Git - ccan/commit
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)
commite8dfb48ec9dd9a7575b179e8208cd2dd5c73bcce
tree83cede9c31da00bf6df31f20e50a04ab41916553
parent3fb6b6be5a395fbe293e61339e6be67118234508
talloc: fix gcc -O3 aliasing warnings

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.
ccan/talloc/talloc.c