mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: mark warning as expected one
This commit is contained in:
parent
0d934e730e
commit
9238b972c5
@ -354,6 +354,7 @@ static bool _insert_node16(struct radix_tree *rt, struct value *v, uint8_t *kb,
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
n48->nr_entries = 17;
|
n48->nr_entries = 17;
|
||||||
|
/* coverity[bad_memset] intentional use of '0' */
|
||||||
memset(n48->keys, 48, sizeof(n48->keys));
|
memset(n48->keys, 48, sizeof(n48->keys));
|
||||||
|
|
||||||
for (i = 0; i < 16; i++) {
|
for (i = 0; i < 16; i++) {
|
||||||
|
@ -222,6 +222,8 @@ retry_fcntl:
|
|||||||
goto fail_close_unlink;
|
goto fail_close_unlink;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* coverity[leaked_handle] intentional leak of fd handle here */
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
fail_close_unlink:
|
fail_close_unlink:
|
||||||
|
@ -221,6 +221,8 @@ retry_fcntl:
|
|||||||
goto fail_close_unlink;
|
goto fail_close_unlink;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* coverity[leaked_handle] intentional leak of fd handle here */
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
fail_close_unlink:
|
fail_close_unlink:
|
||||||
|
Loading…
Reference in New Issue
Block a user