From ed68b5a7302c3c06184b6d8ffb2da3a17e438a6b Mon Sep 17 00:00:00 2001 From: Ewerton Scaboro da Silva Date: Tue, 10 Nov 2020 13:58:35 -0800 Subject: [PATCH] Explicitly ignore return of _az_span_token on c2d parsing (#1482) --- sdk/src/azure/iot/az_iot_hub_client_c2d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/azure/iot/az_iot_hub_client_c2d.c b/sdk/src/azure/iot/az_iot_hub_client_c2d.c index 4acb0ceac5..76905c4279 100644 --- a/sdk/src/azure/iot/az_iot_hub_client_c2d.c +++ b/sdk/src/azure/iot/az_iot_hub_client_c2d.c @@ -29,7 +29,7 @@ AZ_NODISCARD az_result az_iot_hub_client_c2d_parse_received_topic( int32_t index = 0; az_span remainder; - _az_span_token(received_topic, c2d_topic_suffix, &remainder, &index); + (void)_az_span_token(received_topic, c2d_topic_suffix, &remainder, &index); if (index == -1) { return AZ_ERROR_IOT_TOPIC_NO_MATCH;