Skip to content

Commit c8b39c9

Browse files
matt31084vareddy
authored andcommitted
Fixed warning when compiling (#105)
"aws-iot-device-sdk-embedded-C/src/aws_iot_mqtt_client_publish.c", line 353: warning #112-D: statement is unreachable Using TI 16.9.3LTS compiler, the above message is generated. The "return rc;" line is redundant as the FUNC_EXIT_RC macro on the line before returns as well.
1 parent be12601 commit c8b39c9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/aws_iot_mqtt_client_publish.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ IoT_Error_t aws_iot_mqtt_internal_deserialize_publish(uint8_t *dup, QoS *qos,
350350
rc = aws_iot_mqtt_internal_decode_remaining_length_from_buffer(curData, &decodedLen, &readBytesLen);
351351
if(SUCCESS != rc) {
352352
FUNC_EXIT_RC(rc);
353-
return rc;
354353
}
355354
curData += (readBytesLen);
356355
endData = curData + decodedLen;

0 commit comments

Comments
 (0)