summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 09c12e0)
raw | patch | inline | side by side (parent: 09c12e0)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Wed, 6 Apr 2016 08:10:59 +0000 (10:10 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Wed, 6 Apr 2016 08:10:59 +0000 (10:10 +0200) |
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.
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 | patch | blob | history |
diff --git a/src/disk.c b/src/disk.c
index 1dbdd9de543cca3fe65315a561b4d494e2e62dcc..bafc82e042274d9f7da4eadca94d48ad6543dc90 100644 (file)
--- a/src/disk.c
+++ b/src/disk.c
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)