зеркало из https://github.com/nextcloud/desktop.git
Fix build warnings.
This commit is contained in:
Родитель
a98377dbd4
Коммит
c8b641ac98
|
@ -30,7 +30,7 @@ END_TEST
|
|||
|
||||
START_TEST (check_c_strdup)
|
||||
{
|
||||
char *str = "test";
|
||||
char *str = (char *) "test";
|
||||
char *dup;
|
||||
|
||||
dup = c_strdup(str);
|
||||
|
@ -40,7 +40,7 @@ START_TEST (check_c_strdup)
|
|||
END_TEST
|
||||
|
||||
static Suite *make_c_malloc_suite(void) {
|
||||
Suite *s = suite_create("std:path:c_malloc");
|
||||
Suite *s = suite_create("std:alloc:malloc");
|
||||
|
||||
create_case(s, "check_c_malloc", check_c_malloc);
|
||||
create_case(s, "check_c_malloc_zero", check_c_malloc_zero);
|
||||
|
@ -49,7 +49,7 @@ static Suite *make_c_malloc_suite(void) {
|
|||
}
|
||||
|
||||
static Suite *make_c_strdup_suite(void) {
|
||||
Suite *s = suite_create("std:path:c_malloc");
|
||||
Suite *s = suite_create("std:alloc:strdup");
|
||||
|
||||
create_case(s, "check_c_strdup", check_c_strdup);
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ START_TEST (check_c_strlist_add)
|
|||
fail_unless(strlist->count == 0, NULL);
|
||||
|
||||
for (i = 0; i < strlist->size; i++) {
|
||||
fail_unless(c_strlist_add(strlist, "foobar") == 0, NULL);
|
||||
fail_unless(c_strlist_add(strlist, (char *) "foobar") == 0, NULL);
|
||||
}
|
||||
|
||||
fail_unless(strlist->count == 42, NULL);
|
||||
|
|
Загрузка…
Ссылка в новой задаче