Bugfix/atmel studio arm compile warnings (#60)

* Cleanup warnings generated by Atmel Studio compiling for SAMD21 ARM

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2020-03-20 16:42:41 -05:00
committed by GitHub
parent f18612f1ec
commit d557522c1f
10 changed files with 20 additions and 28 deletions
+3 -3
View File
@@ -194,7 +194,7 @@ int dcc_decode_service_request(uint8_t *apdu,
results in no timeout */
*timeDuration = 0;
}
if (apdu_len < apdu_len_max) {
if ((unsigned)apdu_len < apdu_len_max) {
/* Tag 1: enable_disable */
len = bacnet_enumerated_context_decode(
&apdu[apdu_len], apdu_len_max - apdu_len, 1, &decoded_enum);
@@ -208,7 +208,7 @@ int dcc_decode_service_request(uint8_t *apdu,
return BACNET_STATUS_ERROR;
}
}
if (apdu_len < apdu_len_max) {
if ((unsigned)apdu_len < apdu_len_max) {
/* Tag 2: password --optional-- */
if (!decode_is_context_tag(&apdu[apdu_len], 2)) {
/* since this is the last value of the packet,
@@ -220,7 +220,7 @@ int dcc_decode_service_request(uint8_t *apdu,
apdu_len_max - apdu_len, &tag_number, &len_value_type);
if (len > 0) {
apdu_len += len;
if (apdu_len < apdu_len_max) {
if ((unsigned)apdu_len < apdu_len_max) {
len = bacnet_character_string_decode(&apdu[apdu_len],
apdu_len_max - apdu_len, len_value_type, password);
if (len > 0) {