1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-23 21:35:29 +03:00

avoid some compiler warnings

This commit is contained in:
Alasdair Kergon 2007-12-20 16:49:37 +00:00
parent 9afff4cf30
commit 7af977d36b
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);
}
static int _segstartpe_disp(struct dm_report *rh, struct dm_pool *mem,
struct dm_report_field *field,
const void *data, void *private)
static int _segstartpe_disp(struct dm_report *rh,
struct dm_pool *mem __attribute((unused)),
struct dm_report_field *field,
const void *data,
void *private __attribute((unused)))
{
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 */
if ((report_type & PVSEGS) ||
(report_type & PVS) && (report_type & LVS))
((report_type & PVS) && (report_type & LVS)))
report_type = PVSEGS;
else if (report_type & PVS)
report_type = PVS;