chiark / gitweb /
journal: move _packed_ attribute to the end
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Dec 2012 10:38:47 +0000 (11:38 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Dec 2012 10:41:31 +0000 (11:41 +0100)
commit80701564cdd020318064f55c3f7c447df0b2cd24
treec01b874974fc83c9a65acb67a3f791891717f346
parente683136da1b2f0961e19b35634bea7f31ee310ac
journal: move _packed_ attribute to the end

GCC manual states that "For an enum, struct or union type, you may
specify attributes either between the enum, struct or union tag and
the name of the type, or just past the closing curly brace of the
definition. The former syntax is preferred." This means that the
attribute should not be located before 'struct'. Putting it between
'struct' and the name seems cluttered. Putting it at the end seems
most readable.

This avoids clang warnings.
src/journal/journal-def.h