Skip to content

Commit 669d404

Browse files
authored
Build with Warning as Error (#613)
1 parent fb8bdc7 commit 669d404

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

builder.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,16 @@
9393
]
9494
],
9595
"build_steps": [
96-
[
97-
"npm",
98-
"install",
99-
"--unsafe-perm"
100-
],
10196
[
10297
"node",
10398
"scripts/build.js",
10499
"-DAWS_WARNINGS_ARE_ERRORS=ON"
105100
],
101+
[
102+
"npm",
103+
"install",
104+
"--unsafe-perm"
105+
],
106106
[
107107
"npm",
108108
"run-script",

source/mqtt_request_response.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ static int s_compute_request_response_storage_properties(
604604

605605
// Step 3 - Go through all the subscription topic filters, response paths, and options fields and add up
606606
// the lengths of all the string and binary data fields.
607-
for (size_t i = 0; i < subscription_filter_count; ++i) {
607+
for (uint32_t i = 0; i < subscription_filter_count; ++i) {
608608
napi_value array_element;
609609
AWS_NAPI_CALL(env, napi_get_element(env, node_subscription_topic_filters, i, &array_element), {
610610
AWS_LOGF_ERROR(
@@ -626,7 +626,7 @@ static int s_compute_request_response_storage_properties(
626626
storage_properties->bytes_needed += filter_length;
627627
}
628628

629-
for (size_t i = 0; i < response_path_count; ++i) {
629+
for (uint32_t i = 0; i < response_path_count; ++i) {
630630
napi_value array_element;
631631
AWS_NAPI_CALL(env, napi_get_element(env, node_response_paths, i, &array_element), {
632632
AWS_LOGF_ERROR(
@@ -813,7 +813,7 @@ static int s_initialize_request_storage_from_napi_options(
813813
return aws_raise_error(AWS_ERROR_INVALID_ARGUMENT);
814814
}
815815

816-
for (size_t i = 0; i < storage_properties.subscription_topic_filter_count; ++i) {
816+
for (uint32_t i = 0; i < storage_properties.subscription_topic_filter_count; ++i) {
817817
napi_value array_element;
818818
AWS_NAPI_CALL(env, napi_get_element(env, node_subscription_topic_filters, i, &array_element), {
819819
AWS_LOGF_ERROR(
@@ -849,7 +849,7 @@ static int s_initialize_request_storage_from_napi_options(
849849
return aws_raise_error(AWS_ERROR_INVALID_ARGUMENT);
850850
}
851851

852-
for (size_t i = 0; i < storage_properties.response_path_count; ++i) {
852+
for (uint32_t i = 0; i < storage_properties.response_path_count; ++i) {
853853
napi_value response_path_element;
854854
AWS_NAPI_CALL(env, napi_get_element(env, node_response_paths, i, &response_path_element), {
855855
AWS_LOGF_ERROR(

0 commit comments

Comments
 (0)