diff options
author | Peter Foley <pefoley2@pefoley.com> | 2016-03-06 10:33:11 -0500 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-07-01 15:33:25 +0200 |
commit | dcdb47373a375087d2dd8cee5e2a9c66fcc147eb (patch) | |
tree | 20436c514da06d7e5d29a5aa63b6580119a4957c /autogen.sh | |
parent | 610b1208a4d87b874e55982d44c0a9a1a1b7b00d (diff) |
Move declaration of visibility attributes before definition.
When compiling with clang, the visibility attributes are ignored
since they are after the definition of the exported function.
Fix this by moving the attribute declaration before the function.
attr.c:439:1: error: attribute declaration must precede definition [-Werror,-Wignored-attributes]
EXPORT_SYMBOL(mnl_attr_put_u8);
^
./internal.h:7:41: note: expanded from macro 'EXPORT_SYMBOL'
^
./internal.h:6:35: note: expanded from macro '__visible'
^
attr.c:435:6: note: previous definition is here
void mnl_attr_put_u8(struct nlmsghdr *nlh, uint16_t type, uint8_t data)
^
Signed-off-by: Peter Foley <pefoley2@pefoley.com>
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions