diff options
author | Tom Hacohen <tom@stosb.com> | 2013-03-21 13:21:10 +0000 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2013-03-21 13:21:10 +0000 |
commit | 8fb14b29c03f3266d0b64e00d8a21688dfc73d37 (patch) | |
tree | bbb79c98d6242796a075103bab5af6f823a444f8 /src/tests/eina/eina_test_value.c | |
parent | ecc0972468cb5f9ce03041720f373be358a49909 (diff) | |
download | efl-8fb14b29c03f3266d0b64e00d8a21688dfc73d37.tar.gz |
Eina tests: Fixed warnings with clang.
Clang doesn't appreciate passing 'char' to %hdd, although they are the right
size. So change to %d and cast to 'int' before passing it.
Diffstat (limited to 'src/tests/eina/eina_test_value.c')
-rw-r--r-- | src/tests/eina/eina_test_value.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tests/eina/eina_test_value.c b/src/tests/eina/eina_test_value.c index cba7f88a3e..c64174933f 100644 --- a/src/tests/eina/eina_test_value.c +++ b/src/tests/eina/eina_test_value.c @@ -1089,8 +1089,8 @@ START_TEST(eina_value_test_array) fail_unless(eina_value_array_get(value, 3, &c)); fail_unless(c == 's'); - snprintf(buf, sizeof(buf), "[%hhd, %hhd, %hhd, %hhd]", - '*', 'k', '-', 's'); + snprintf(buf, sizeof(buf), "[%d, %d, %d, %d]", + (int) '*', (int) 'k', (int) '-', (int) 's'); str = eina_value_to_string(value); fail_unless(str != NULL); @@ -1201,8 +1201,8 @@ START_TEST(eina_value_test_list) fail_unless(eina_value_list_get(value, 3, &c)); fail_unless(c == 's'); - snprintf(buf, sizeof(buf), "[%hhd, %hhd, %hhd, %hhd]", - '*', 'k', '-', 's'); + snprintf(buf, sizeof(buf), "[%d, %d, %d, %d]", + (int) '*', (int) 'k', (int) '-', (int) 's'); str = eina_value_to_string(value); fail_unless(str != NULL); @@ -1303,13 +1303,13 @@ START_TEST(eina_value_test_hash) str = eina_value_to_string(value); fail_unless(str != NULL); - snprintf(buf, sizeof(buf), "first: %hhd", '!'); + snprintf(buf, sizeof(buf), "first: %d", (int) '!'); fail_unless(strstr(str, buf) != NULL, "Couldn't find '%s' in '%s'", buf, str); - snprintf(buf, sizeof(buf), "second: %hhd", '-'); + snprintf(buf, sizeof(buf), "second: %d", (int) '-'); fail_unless(strstr(str, buf) != NULL, "Couldn't find '%s' in '%s'", buf, str); - snprintf(buf, sizeof(buf), "third: %hhd", 's'); + snprintf(buf, sizeof(buf), "third: %d", (int) 's'); fail_unless(strstr(str, buf) != NULL, "Couldn't find '%s' in '%s'", buf, str); free(str); |