From 7c12e91a91bc5eebcf6e60d70f5c1caaa7d5c8d6 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 6 Apr 2016 10:10:59 +0200 Subject: [PATCH] disk plugin: fix build on Solaris MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. --- src/disk.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.30.2