From: Marc Fournier Date: Mon, 22 Jul 2013 10:02:13 +0000 (+0200) Subject: netlink: __attribute__ usage clarification X-Git-Tag: collectd-5.4.0~11^2~6 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=1badae852df21c785bf1b2d30ce3f288b2687f77 netlink: __attribute__ usage clarification As requested by @octo in GitHub#376. --- diff --git a/src/netlink.c b/src/netlink.c index ff730e1e..c0b60c22 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -271,7 +271,7 @@ static void check_ignorelist_and_submit (const char *dev, } /* void check_ignorelist_and_submit */ static int link_filter_cb (const struct nlmsghdr *nlh, - void __attribute__((unused)) *args) + void *args __attribute__((unused))) { struct ifinfomsg *ifm = mnl_nlmsg_get_payload (nlh); struct nlattr *attr; @@ -372,7 +372,7 @@ static int qos_filter_cb (const struct nlmsghdr *nlh, void *args) char *tc_type; char tc_inst[DATA_MAX_NAME_LEN]; - int __attribute__((unused)) stats_submitted = 0; + _Bool stats_submitted = 0; if (nlh->nlmsg_type == RTM_NEWQDISC) tc_type = "qdisc";