libnl: fix about 100 warnings
In file included from addr.c:28: ../include/netlink-local.h:119:1: warning: "__deprecated" redefined In file included from /usr/include/linux/stddef.h:4, from /usr/include/linux/posix_types.h:4, from /usr/include/linux/types.h:8, from ../include/netlink-local.h:37, from addr.c:28: /usr/include/linux/compiler.h:45:1: warning: this is the location of the previous definition This happens about 100 times. Suggested patch:
This commit is contained in:
parent
b310cbb7b6
commit
e38716b41e
1 changed files with 1 additions and 0 deletions
|
@ -116,6 +116,7 @@ static inline int nl_cb_call(struct nl_cb *cb, int type, struct nl_msg *msg)
|
|||
|
||||
#define __init __attribute__ ((constructor))
|
||||
#define __exit __attribute__ ((destructor))
|
||||
#undef __deprecated
|
||||
#define __deprecated __attribute__ ((deprecated))
|
||||
|
||||
#define min(x,y) ({ \
|
||||
|
|
Loading…
Add table
Reference in a new issue