]> granicus.if.org Git - libnl/commitdiff
libnl: fix about 100 warnings
authorHolger Schurig <hs4233@mail.mn-solutions.de>
Thu, 14 Aug 2008 09:53:38 +0000 (11:53 +0200)
committerThomas Graf <tgr@plip.localdomain>
Mon, 18 Aug 2008 23:40:25 +0000 (01:40 +0200)
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

index eba482742beb7bea852f010f9a82df80c6f5f720..3942a4ae351a80dd17f0a4a3aa7dc9039dc1a11a 100644 (file)
@@ -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) ({ \