mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 19:18:00 +02:00
cli: mute coverity for Error: DEADCODE (CWE-561)
It can't recognize that the variables are set when parsing arguments.
This commit is contained in:
parent
471375a3e1
commit
ed088b0df7
1 changed files with 2 additions and 0 deletions
|
|
@ -5256,6 +5256,7 @@ cleanup_olpc:
|
||||||
add_ip4_address_to_connection (ip4addr, connection);
|
add_ip4_address_to_connection (ip4addr, connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* coverity[dead_error_begin] */
|
||||||
if (gw4) {
|
if (gw4) {
|
||||||
NMSettingIPConfig *s_ip = nm_connection_get_setting_ip4_config (connection);
|
NMSettingIPConfig *s_ip = nm_connection_get_setting_ip4_config (connection);
|
||||||
|
|
||||||
|
|
@ -5288,6 +5289,7 @@ cleanup_olpc:
|
||||||
add_ip6_address_to_connection (ip6addr, connection);
|
add_ip6_address_to_connection (ip6addr, connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* coverity[dead_error_begin] */
|
||||||
if (gw6) {
|
if (gw6) {
|
||||||
NMSettingIPConfig *s_ip = nm_connection_get_setting_ip6_config (connection);
|
NMSettingIPConfig *s_ip = nm_connection_get_setting_ip6_config (connection);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue