diff --git a/libfreerdp/core/gateway/rpc.c b/libfreerdp/core/gateway/rpc.c index 35d0649ec..fa4733930 100644 --- a/libfreerdp/core/gateway/rpc.c +++ b/libfreerdp/core/gateway/rpc.c @@ -63,6 +63,7 @@ static const char* PTYPE_STRINGS[] = { "PTYPE_REQUEST", "PTYPE_PING", static const char* client_in_state_str(CLIENT_IN_CHANNEL_STATE state) { + // NOLINTNEXTLINE(clang-analyzer-deadcode.DeadStores) const char* str = "CLIENT_IN_CHANNEL_STATE_UNKNOWN"; switch (state) @@ -102,6 +103,7 @@ static const char* client_in_state_str(CLIENT_IN_CHANNEL_STATE state) static const char* client_out_state_str(CLIENT_OUT_CHANNEL_STATE state) { + // NOLINTNEXTLINE(clang-analyzer-deadcode.DeadStores) const char* str = "CLIENT_OUT_CHANNEL_STATE_UNKNOWN"; switch (state) @@ -153,6 +155,7 @@ static const char* client_out_state_str(CLIENT_OUT_CHANNEL_STATE state) const char* rpc_vc_state_str(VIRTUAL_CONNECTION_STATE state) { + // NOLINTNEXTLINE(clang-analyzer-deadcode.DeadStores) const char* str = "VIRTUAL_CONNECTION_STATE_UNKNOWN"; switch (state) diff --git a/libfreerdp/core/gateway/rpc_client.c b/libfreerdp/core/gateway/rpc_client.c index c796ec625..371684c96 100644 --- a/libfreerdp/core/gateway/rpc_client.c +++ b/libfreerdp/core/gateway/rpc_client.c @@ -45,6 +45,7 @@ static const char* rpc_client_state_str(RPC_CLIENT_STATE state) { + // NOLINTNEXTLINE(clang-analyzer-deadcode.DeadStores) const char* str = "RPC_CLIENT_STATE_UNKNOWN"; switch (state)