diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2022-09-26 13:49:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-26 13:49:56 +0000 |
commit | 71cb1ad68707718671ef57c901dfa2041f15bbe6 (patch) | |
tree | 71f0cb5819b66a0864e1044678492ea044beed3c /libnetdata | |
parent | 570a716100f313026c127e9dbf3b9c65e423e3a3 (diff) |
Fix warnings during compilation time on ARM (32 bits) (#13681)
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/dictionary/dictionary.c | 4 | ||||
-rw-r--r-- | libnetdata/json/json.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/libnetdata/dictionary/dictionary.c b/libnetdata/dictionary/dictionary.c index 190ee12a86..88de7df3af 100644 --- a/libnetdata/dictionary/dictionary.c +++ b/libnetdata/dictionary/dictionary.c @@ -1684,7 +1684,7 @@ static bool api_is_name_good_with_trace(DICTIONARY *dict __maybe_unused, const c function, name, strlen(name) + 1, - name_len, + (long int) name_len, dict?dict->creation_function:"unknown", dict?dict->creation_line:0, dict?dict->creation_file:"unknown"); @@ -1695,7 +1695,7 @@ static bool api_is_name_good_with_trace(DICTIONARY *dict __maybe_unused, const c function, name, strlen(name) + 1, - name_len, + (long int) name_len, dict?dict->creation_function:"unknown", dict?dict->creation_line:0, dict?dict->creation_file:"unknown"); diff --git a/libnetdata/json/json.c b/libnetdata/json/json.c index e03556b506..d5f62edaf1 100644 --- a/libnetdata/json/json.c +++ b/libnetdata/json/json.c @@ -102,7 +102,7 @@ int json_callback_print(JSON_ENTRY *e) case JSON_ARRAY: e->callback_function = json_callback_print; - sprintf(txt,"ARRAY[%lu]", e->data.items); + sprintf(txt,"ARRAY[%lu]", (long unsigned int) e->data.items); buffer_strcat(wb, txt); break; @@ -553,4 +553,5 @@ int json_test(char *str) { return json_parse(str, NULL, json_callback_print); } - */
\ No newline at end of file + */ + |