diff options
author | Alasdair Kergon <agk@redhat.com> | 2007-08-22 14:38:18 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2007-08-22 14:38:18 +0000 |
commit | 21bc366486b241180e43864a03267a6d1e2e9a01 (patch) | |
tree | 520259cd2f771dd96f9520f2088fedf256987f6b /lib/format1/lvm1-label.c | |
parent | d65b20980b63e75903830795a703769ad4030f40 (diff) | |
download | lvm2-21bc366486b241180e43864a03267a6d1e2e9a01.tar.gz lvm2-21bc366486b241180e43864a03267a6d1e2e9a01.tar.xz lvm2-21bc366486b241180e43864a03267a6d1e2e9a01.zip |
Clean up numerous compiler warnings that crept in recently.
Remove several unused parameters from _allocate().
Diffstat (limited to 'lib/format1/lvm1-label.c')
-rw-r--r-- | lib/format1/lvm1-label.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/format1/lvm1-label.c b/lib/format1/lvm1-label.c index 78e714f4..e2bb465f 100644 --- a/lib/format1/lvm1-label.c +++ b/lib/format1/lvm1-label.c @@ -30,7 +30,7 @@ static void _not_supported(const char *op) op); } -static int _lvm1_can_handle(struct labeller *l, void *buf, uint64_t sector) +static int _lvm1_can_handle(struct labeller *l __attribute((unused)), void *buf, uint64_t sector) { struct pv_disk *pvd = (struct pv_disk *) buf; uint32_t version; @@ -48,7 +48,7 @@ static int _lvm1_can_handle(struct labeller *l, void *buf, uint64_t sector) return 0; } -static int _lvm1_write(struct label *label, void *buf) +static int _lvm1_write(struct label *label __attribute((unused)), void *buf __attribute((unused))) { _not_supported("write"); return 0; @@ -85,14 +85,14 @@ static int _lvm1_read(struct labeller *l, struct device *dev, void *buf, return 1; } -static int _lvm1_initialise_label(struct labeller *l, struct label *label) +static int _lvm1_initialise_label(struct labeller *l __attribute((unused)), struct label *label) { strcpy(label->type, "LVM1"); return 1; } -static void _lvm1_destroy_label(struct labeller *l, struct label *label) +static void _lvm1_destroy_label(struct labeller *l __attribute((unused)), struct label *label __attribute((unused))) { return; } |