From 97d078a9afbe4ed9949dc71acf7091fcf7971339 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Sun, 3 Jun 2018 00:00:00 -0500 Subject: [PATCH] library: clean up some miscellaneous compiler warnings Signed-off-by: Jim Warner --- proc/diskstats.c | 4 ++-- proc/meminfo.c | 1 + proc/pids.c | 1 + proc/slabinfo.c | 4 ++-- proc/stat.c | 1 + proc/vmstat.c | 1 + 6 files changed, 8 insertions(+), 4 deletions(-) diff --git a/proc/diskstats.c b/proc/diskstats.c index 957ffde6..e935bb3c 100644 --- a/proc/diskstats.c +++ b/proc/diskstats.c @@ -501,7 +501,6 @@ static void diskstats_itemize_stacks_all ( static inline int diskstats_items_check_failed ( - struct ext_support *this, enum diskstats_item *items, int numitems) { @@ -715,7 +714,7 @@ static int diskstats_stacks_reconfig_maybe ( enum diskstats_item *items, int numitems) { - if (diskstats_items_check_failed(this, items, numitems)) + if (diskstats_items_check_failed(items, numitems)) return -1; /* is this the first time or have things changed since we were last called? if so, gotta' redo all of our stacks stuff ... */ @@ -1054,4 +1053,5 @@ PROCPS_EXPORT struct diskstats_result *xtra_diskstats_val ( fprintf(stderr, "%s line %d: was %s, expected %s\n", file, lineno, typestr, str); } return &stack->head[relative_enum]; + (void)info; } // end: xtra_diskstats_val diff --git a/proc/meminfo.c b/proc/meminfo.c index cc8cdad0..13957255 100644 --- a/proc/meminfo.c +++ b/proc/meminfo.c @@ -944,4 +944,5 @@ PROCPS_EXPORT struct meminfo_result *xtra_meminfo_val ( fprintf(stderr, "%s line %d: was %s, expected %s\n", file, lineno, typestr, str); } return &stack->head[relative_enum]; + (void)info; } // end: xtra_meminfo_val diff --git a/proc/pids.c b/proc/pids.c index b1d15723..d3cc55d0 100644 --- a/proc/pids.c +++ b/proc/pids.c @@ -1546,4 +1546,5 @@ PROCPS_EXPORT struct pids_result *xtra_pids_val ( fprintf(stderr, "%s line %d: was %s, expected %s\n", file, lineno, typestr, str); } return &stack->head[relative_enum]; + (void)info; } // end: xtra_pids_val diff --git a/proc/slabinfo.c b/proc/slabinfo.c index 966cf7d3..4049c1a8 100644 --- a/proc/slabinfo.c +++ b/proc/slabinfo.c @@ -584,7 +584,6 @@ static void slabinfo_itemize_stacks_all ( static inline int slabinfo_items_check_failed ( - struct ext_support *this, enum slabinfo_item *items, int numitems) { @@ -742,7 +741,7 @@ static int slabinfo_stacks_reconfig_maybe ( enum slabinfo_item *items, int numitems) { - if (slabinfo_items_check_failed(this, items, numitems)) + if (slabinfo_items_check_failed(items, numitems)) return -1; /* is this the first time or have things changed since we were last called? if so, gotta' redo all of our stacks stuff ... */ @@ -1070,4 +1069,5 @@ PROCPS_EXPORT struct slabinfo_result *xtra_slabinfo_val ( fprintf(stderr, "%s line %d: was %s, expected %s\n", file, lineno, typestr, str); } return &stack->head[relative_enum]; + (void)info; } // end: xtra_slabinfo_val diff --git a/proc/stat.c b/proc/stat.c index 78bfb1ae..524dfe07 100644 --- a/proc/stat.c +++ b/proc/stat.c @@ -1213,4 +1213,5 @@ PROCPS_EXPORT struct stat_result *xtra_stat_val ( fprintf(stderr, "%s line %d: was %s, expected %s\n", file, lineno, typestr, str); } return &stack->head[relative_enum]; + (void)info; } // end: xtra_stat_val diff --git a/proc/vmstat.c b/proc/vmstat.c index 14d79ec1..f78f94fe 100644 --- a/proc/vmstat.c +++ b/proc/vmstat.c @@ -1312,4 +1312,5 @@ PROCPS_EXPORT struct vmstat_result *xtra_vmstat_val ( fprintf(stderr, "%s line %d: was %s, expected %s\n", file, lineno, typestr, str); } return &stack->head[relative_enum]; + (void)info; } // end: xtra_vmstat_val