1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

avoid some compiler warnings

This commit is contained in:
Alasdair Kergon 2007-12-20 16:49:37 +00:00
parent a69ab65278
commit ac089d9015
2 changed files with 6 additions and 4 deletions

View File

@ -639,9 +639,11 @@ static int _segstart_disp(struct dm_report *rh, struct dm_pool *mem,
return _size64_disp(rh, mem, field, &start, private); return _size64_disp(rh, mem, field, &start, private);
} }
static int _segstartpe_disp(struct dm_report *rh, struct dm_pool *mem, static int _segstartpe_disp(struct dm_report *rh,
struct dm_pool *mem __attribute((unused)),
struct dm_report_field *field, struct dm_report_field *field,
const void *data, void *private) const void *data,
void *private __attribute((unused)))
{ {
const struct lv_segment *seg = (const struct lv_segment *) data; const struct lv_segment *seg = (const struct lv_segment *) data;

View File

@ -289,7 +289,7 @@ static int _report(struct cmd_context *cmd, int argc, char **argv,
/* Change report type if fields specified makes this necessary */ /* Change report type if fields specified makes this necessary */
if ((report_type & PVSEGS) || if ((report_type & PVSEGS) ||
(report_type & PVS) && (report_type & LVS)) ((report_type & PVS) && (report_type & LVS)))
report_type = PVSEGS; report_type = PVSEGS;
else if (report_type & PVS) else if (report_type & PVS)
report_type = PVS; report_type = PVS;