Skip to content

Commit

Permalink
Fixed warning when compiling (#105)
Browse files Browse the repository at this point in the history
"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.
  • Loading branch information
matt31084 authored and Gordon Wang committed Apr 20, 2018
1 parent c5c1d23 commit a447a61
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/aws_iot_mqtt_client_publish.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ IoT_Error_t aws_iot_mqtt_internal_deserialize_publish(uint8_t *dup, QoS *qos,
rc = aws_iot_mqtt_internal_decode_remaining_length_from_buffer(curData, &decodedLen, &readBytesLen);
if(SUCCESS != rc) {
FUNC_EXIT_RC(rc);
return rc;
}
curData += (readBytesLen);
endData = curData + decodedLen;
Expand Down

0 comments on commit a447a61

Please sign in to comment.