From: Ruben Kerkhof Date: Wed, 6 Apr 2016 08:10:59 +0000 (+0200) Subject: disk plugin: fix build on Solaris X-Git-Tag: collectd-5.6.0~360 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7c12e91a91bc5eebcf6e60d70f5c1caaa7d5c8d6;p=collectd.git disk plugin: fix build on Solaris CC disk_la-disk.lo disk.c:296:13: error: ‘submit_io_time’ defined but not used [-Werror=unused-function] static void submit_io_time (char const *plugin_instance, derive_t io_time, derive_t weighted_time) ^ cc1: all warnings being treated as errors Thanks @dago for letting me know. --- diff --git a/src/disk.c b/src/disk.c index 1dbdd9de..bafc82e0 100644 --- a/src/disk.c +++ b/src/disk.c @@ -293,6 +293,7 @@ static void disk_submit (const char *plugin_instance, plugin_dispatch_values (&vl); } /* void disk_submit */ +#if KERNEL_FREEBSD || KERNEL_LINUX static void submit_io_time (char const *plugin_instance, derive_t io_time, derive_t weighted_time) { value_t values[2]; @@ -313,6 +314,7 @@ static void submit_io_time (char const *plugin_instance, derive_t io_time, deriv plugin_dispatch_values (&vl); } /* void submit_io_time */ +#endif /* KERNEL_FREEBSD || KERNEL_LINUX */ #if KERNEL_LINUX static void submit_in_progress (char const *disk_name, gauge_t in_progress)