summaryrefslogtreecommitdiffstats
path: root/lib/snapshot/snapshot.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2006-05-11 17:58:58 +0000
committerAlasdair Kergon <agk@redhat.com>2006-05-11 17:58:58 +0000
commit898e6f8e419c6d0a86d1a0fd12073fed05f6319c (patch)
treee288c49555a84a19f5db7798bfffaed38fb5eaca /lib/snapshot/snapshot.c
parenta54b98e5efc84265c1eb3e1b4165e8863b52f645 (diff)
downloadlvm2-898e6f8e419c6d0a86d1a0fd12073fed05f6319c.tar.gz
lvm2-898e6f8e419c6d0a86d1a0fd12073fed05f6319c.tar.xz
lvm2-898e6f8e419c6d0a86d1a0fd12073fed05f6319c.zip
Add mirror_library description to example.conf.
More compile-time cleanup.
Diffstat (limited to 'lib/snapshot/snapshot.c')
-rw-r--r--lib/snapshot/snapshot.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/snapshot/snapshot.c b/lib/snapshot/snapshot.c
index f1733639..691853c3 100644
--- a/lib/snapshot/snapshot.c
+++ b/lib/snapshot/snapshot.c
@@ -27,7 +27,7 @@ static const char *_snap_name(const struct lv_segment *seg)
}
static int _snap_text_import(struct lv_segment *seg, const struct config_node *sn,
- struct dm_hash_table *pv_hash)
+ struct dm_hash_table *pv_hash __attribute((unused)))
{
uint32_t chunk_size;
const char *org_name, *cow_name;
@@ -87,8 +87,10 @@ static int _snap_text_export(const struct lv_segment *seg, struct formatter *f)
}
#ifdef DEVMAPPER_SUPPORT
-static int _snap_target_percent(void **target_state, struct dm_pool *mem,
- struct config_tree *cft, struct lv_segment *seg,
+static int _snap_target_percent(void **target_state __attribute((unused)),
+ struct dm_pool *mem __attribute((unused)),
+ struct config_tree *cft __attribute((unused)),
+ struct lv_segment *seg __attribute((unused)),
char *params, uint64_t *total_numerator,
uint64_t *total_denominator, float *percent)
{
@@ -126,7 +128,7 @@ static int _snap_target_present(void)
static void _snap_destroy(const struct segment_type *segtype)
{
- dm_free((void *) segtype);
+ dm_free((void *)segtype);
}
static struct segtype_handler _snapshot_ops = {