diff options
author | Manuel Messner <mm@skelett.io> | 2019-10-31 09:37:07 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-10-31 14:34:33 +0100 |
commit | 3c1a1779cb0d2725521e8411903d37b1aebd956c (patch) | |
tree | 52a2e4f14d6391e574f587476efc83c77aaf91c4 /src/gen.c | |
parent | f343df728efa0fb53455ad89d3485f018781079a (diff) |
flowtable: Fix symbol export for clang
clang does not allow attribute declarations after definitions:
flowtable.c:41:1: warning: attribute declaration must precede definition [-Wignored-attributes]
EXPORT_SYMBOL(nftnl_flowtable_alloc);
^
../include/utils.h:13:41: note: expanded from macro 'EXPORT_SYMBOL'
# define EXPORT_SYMBOL(x) typeof(x) (x) __visible;
^
../include/utils.h:12:35: note: expanded from macro '__visible'
# define __visible __attribute__((visibility("default")))
^
flowtable.c:37:25: note: previous definition is here
struct nftnl_flowtable *nftnl_flowtable_alloc(void)
Move attribute declarations before the symbol definitions just like
it's done in other source files
Signed-off-by: Marvin Schmidt <marvin_schmidt@gmx.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/gen.c')
0 files changed, 0 insertions, 0 deletions