]> git.ozlabs.org Git - ccan/commit
tlist: Place tlists last in structures
authorJon Griffiths <jon_p_griffiths@yahoo.com>
Mon, 22 Aug 2016 14:04:06 +0000 (02:04 +1200)
committerJon Griffiths <jon_p_griffiths@yahoo.com>
Wed, 24 Aug 2016 06:52:29 +0000 (18:52 +1200)
commit03f100b281441a953d4ec858389f82e25a95c043
treef171d2ac915a8fcf9a7eff4dcbe4c920ffe9cc98
parent3da02efb4c0e0694ae773289d09162f59251a1f4
tlist: Place tlists last in structures

TCON suggests placing _tcon members last in structs. Placing variable
sized structs anywhere but last is apparently a gcc extension that
gives warnings under clang.

This applies to tlists because they use TCON internally. Update the
docs and examples to place tlists last and so compile without clang
warnings.

There are other places where this occurs; they will be dealt with
separately.

Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
ccan/tlist/_info
ccan/tlist/test/run.c
ccan/tlist/tlist.h