mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: explicitely ignore function result
This commit is contained in:
parent
1705b439b1
commit
85e2c7e14d
@ -1032,7 +1032,7 @@ void radix_tree_iterate(struct radix_tree *rt, uint8_t *kb, uint8_t *ke,
|
||||
{
|
||||
struct lookup_result lr = _lookup_prefix(&rt->root, kb, ke);
|
||||
if (lr.kb == ke || _prefix_chain_matches(&lr, ke))
|
||||
_iterate(lr.v, it);
|
||||
(void) _iterate(lr.v, it);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------
|
||||
|
@ -966,7 +966,7 @@ int write_hint_file(struct cmd_context *cmd, int newhints)
|
||||
* detect when the devices on the system change, which
|
||||
* invalidates the existing hints.
|
||||
*/
|
||||
strncpy(devpath, dev_name(dev), PATH_MAX);
|
||||
(void) dm_strncpy(devpath, dev_name(dev), sizeof(devpath));
|
||||
hash = calc_crc(hash, (const uint8_t *)devpath, strlen(devpath));
|
||||
count++;
|
||||
|
||||
|
@ -367,7 +367,7 @@ static int _opt_str_to_num(struct command *cmd, char *str)
|
||||
int i;
|
||||
int first = 0, last = ARG_COUNT - 1, middle;
|
||||
|
||||
dm_strncpy(long_name, str, sizeof(long_name));
|
||||
(void) dm_strncpy(long_name, str, sizeof(long_name));
|
||||
|
||||
if ((p = strstr(long_name, "_long")))
|
||||
/*
|
||||
@ -802,7 +802,7 @@ static char *_get_oo_line(const char *str)
|
||||
char str2[OO_NAME_LEN];
|
||||
int i;
|
||||
|
||||
dm_strncpy(str2, str, sizeof(str2));
|
||||
(void) dm_strncpy(str2, str, sizeof(str2));
|
||||
if ((end = strchr(str2, ':')))
|
||||
*end = '\0';
|
||||
if ((end = strchr(str2, ',')))
|
||||
|
Loading…
Reference in New Issue
Block a user