mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
avoid some compiler warnings
This commit is contained in:
parent
a69ab65278
commit
ac089d9015
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user