From ed088b0df7df2e5fc9ccd0a516cb18f74b1b6022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Fri, 12 Dec 2014 15:07:15 +0100 Subject: [PATCH] cli: mute coverity for Error: DEADCODE (CWE-561) It can't recognize that the variables are set when parsing arguments. --- clients/cli/connections.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clients/cli/connections.c b/clients/cli/connections.c index 6a532b585..5de9cc9d1 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -5256,6 +5256,7 @@ cleanup_olpc: add_ip4_address_to_connection (ip4addr, connection); } + /* coverity[dead_error_begin] */ if (gw4) { NMSettingIPConfig *s_ip = nm_connection_get_setting_ip4_config (connection); @@ -5288,6 +5289,7 @@ cleanup_olpc: add_ip6_address_to_connection (ip6addr, connection); } + /* coverity[dead_error_begin] */ if (gw6) { NMSettingIPConfig *s_ip = nm_connection_get_setting_ip6_config (connection);