diff options
author | Karel Zak | 2017-01-05 12:04:22 +0100 |
---|---|---|
committer | Karel Zak | 2017-01-05 12:31:26 +0100 |
commit | 1f408f0220cf87c00d23f38569f99915f739cd0c (patch) | |
tree | 12ef5650504b4706502481e435c3fd856751fd86 /libsmartcols | |
parent | libuuid: unused parameter [-Wunused-parameter] (diff) | |
download | kernel-qcow2-util-linux-1f408f0220cf87c00d23f38569f99915f739cd0c.tar.gz kernel-qcow2-util-linux-1f408f0220cf87c00d23f38569f99915f739cd0c.tar.xz kernel-qcow2-util-linux-1f408f0220cf87c00d23f38569f99915f739cd0c.zip |
libsmartcols: unused parameter [-Wunused-parameter]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols')
-rw-r--r-- | libsmartcols/src/table_print.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libsmartcols/src/table_print.c b/libsmartcols/src/table_print.c index c2c178f72..720cfe2bf 100644 --- a/libsmartcols/src/table_print.c +++ b/libsmartcols/src/table_print.c @@ -1480,12 +1480,12 @@ done: * * Returns: 0, a negative value in case of an error. */ +#ifdef HAVE_OPEN_MEMSTREAM int scols_table_print_range_to_string( struct libscols_table *tb, struct libscols_line *start, struct libscols_line *end, char **data) { -#ifdef HAVE_OPEN_MEMSTREAM FILE *stream, *old_stream; size_t sz; int rc; @@ -1507,10 +1507,17 @@ int scols_table_print_range_to_string( struct libscols_table *tb, scols_table_set_stream(tb, old_stream); return rc; +} #else +int scols_table_print_range_to_string( + struct libscols_table *tb __attribute__((__unused__)), + struct libscols_line *start __attribute__((__unused__)), + struct libscols_line *end __attribute__((__unused__)), + char **data __attribute__((__unused__))) +{ return -ENOSYS; -#endif } +#endif static int __scols_print_table(struct libscols_table *tb, int *is_empty) { |