diff options
author | Ruediger Meier | 2017-06-13 11:08:10 +0200 |
---|---|---|
committer | Ruediger Meier | 2017-06-13 23:39:22 +0200 |
commit | 59879322e629b7b929c4643d84ec3e372633c693 (patch) | |
tree | 99afa311c876e7d4531c699454e025c57be372e6 /libsmartcols | |
parent | libfdisk: fix guid usage of packed struct gpt_entry (diff) | |
download | kernel-qcow2-util-linux-59879322e629b7b929c4643d84ec3e372633c693.tar.gz kernel-qcow2-util-linux-59879322e629b7b929c4643d84ec3e372633c693.tar.xz kernel-qcow2-util-linux-59879322e629b7b929c4643d84ec3e372633c693.zip |
libsmartcols: fix warning "unused parameter"
Noticed on OSX.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'libsmartcols')
-rw-r--r-- | libsmartcols/src/table_print.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libsmartcols/src/table_print.c b/libsmartcols/src/table_print.c index 8e37c80cb..115212101 100644 --- a/libsmartcols/src/table_print.c +++ b/libsmartcols/src/table_print.c @@ -1656,9 +1656,9 @@ int scols_print_table(struct libscols_table *tb) * * Returns: 0, a negative value in case of an error. */ +#ifdef HAVE_OPEN_MEMSTREAM int scols_print_table_to_string(struct libscols_table *tb, char **data) { -#ifdef HAVE_OPEN_MEMSTREAM FILE *stream, *old_stream; size_t sz; int rc; @@ -1680,8 +1680,13 @@ int scols_print_table_to_string(struct libscols_table *tb, char **data) scols_table_set_stream(tb, old_stream); return rc; +} #else +int scols_print_table_to_string( + struct libscols_table *tb __attribute__((__unused__)), + char **data __attribute__((__unused__))) +{ return -ENOSYS; -#endif } +#endif |