]> git.ozlabs.org Git - ccan/commitdiff
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)
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>

No differences found