Michael Meskes wrote:
> Could you please give us the whole warning gcc-4.6 spits out?
Sure, sorry about that.
cc -g -O2 -Wall -Wextra -Wundef -Wshadow -Werror -c -o libnetlink.o
libnetlink.c
libnetlink.c: In function ‘rtnl_from_file’:
libnetlink.c:444:17: warning: variable ‘type’ set but not used
[-Wunused-but-set-variable]
This is in the kacpimon directory.
diff --git a/kacpimon/libnetlink.c b/kacpimon/libnetlink.c
index 0f4eec3..dc1f853 100644
--- a/kacpimon/libnetlink.c
+++ b/kacpimon/libnetlink.c
@@ -441,7 +441,7 @@ int rtnl_from_file(FILE *rtnl, rtnl_filter_t handler,
nladdr.nl_groups = 0;
while (1) {
- int err, len, type;
+ int err, len;
int l;
status = fread(&buf, 1, sizeof(*h), rtnl);
@@ -456,7 +456,6 @@ int rtnl_from_file(FILE *rtnl, rtnl_filter_t handler,
return 0;
len = h->nlmsg_len;
- type= h->nlmsg_type;
l = len - sizeof(*h);
if (l<0 || (unsigned)len>sizeof(buf)) {
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]