diff options
author | Benoît Dejean <bdejean@gmail.com> | 2018-07-22 12:23:11 +0200 |
---|---|---|
committer | Benoît Dejean <bdejean@gmail.com> | 2018-07-22 12:23:11 +0200 |
commit | 7c811a7826bc2faca8799df322cfdc26bd9f0c60 (patch) | |
tree | a755f70e63f19891f74ecfb7e3ab2ee822236db2 | |
parent | 40144f390857476f19cf37fcf812f3e2de177873 (diff) | |
download | libgtop-7c811a7826bc2faca8799df322cfdc26bd9f0c60.tar.gz |
Fixed 3 old compile warnings.
-rw-r--r-- | sysdeps/linux/procmap.c | 2 | ||||
-rw-r--r-- | sysdeps/linux/procmem.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/linux/procmap.c b/sysdeps/linux/procmap.c index 546d08af..05eb2ddd 100644 --- a/sysdeps/linux/procmap.c +++ b/sysdeps/linux/procmap.c @@ -136,7 +136,7 @@ parse_line(char* line, { /* %16llx-%16llx %4c %16llx %02hx:%02hx %llu%*[ ]%n */ - char *p, *next; + char *p; p = line; diff --git a/sysdeps/linux/procmem.c b/sysdeps/linux/procmem.c index 523fd62a..0250cd9b 100644 --- a/sysdeps/linux/procmem.c +++ b/sysdeps/linux/procmem.c @@ -35,7 +35,7 @@ static const unsigned long _glibtop_sysdeps_proc_mem_pss = static unsigned long -get_pss(glibtop* server, pid_t pid) +G_GNUC_UNUSED get_pss(glibtop* server, pid_t pid) { char filepath[128]; FILE* smaps; @@ -86,7 +86,7 @@ glibtop_get_proc_mem_s (glibtop *server, glibtop_proc_mem *buf, pid_t pid) memset (buf, 0, sizeof (glibtop_proc_mem)); - /* As of 2.6.24 in fs/proc/*.c + /* As of 2.6.24 in fs/proc/ *.c == rss vs. resident == |