From e38716b41e79b2d60ab9b7ada9678e1014a6898e Mon Sep 17 00:00:00 2001 From: Holger Schurig Date: Thu, 14 Aug 2008 11:53:38 +0200 Subject: [PATCH] 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: --- include/netlink-local.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/netlink-local.h b/include/netlink-local.h index eba4827..3942a4a 100644 --- a/include/netlink-local.h +++ b/include/netlink-local.h @@ -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) ({ \