Skip to content

Commit

Permalink
tests: discard const in test_confdb_get_enabled_domain_list
Browse files Browse the repository at this point in the history
```
../../src/tests/cmocka/confdb/test_confdb.c:247:51: error: passing argument 2 of ‘string_in_list’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  247 |         assert_true(string_in_list(result[index], expected_enabled_domain_list, false));
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                   |
      |                                                   const char **
```
  • Loading branch information
pbrezina committed Jul 24, 2020
1 parent d999cbf commit 7e004b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/cmocka/confdb/test_confdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ static void test_confdb_get_enabled_domain_list(void **state)
assert_true(string_in_list(expected_enabled_domain_list[index], result, false));
}
for (int index = 0; result[index]; index++) {
assert_true(string_in_list(result[index], expected_enabled_domain_list, false));
assert_true(string_in_list(result[index], discard_const(expected_enabled_domain_list), false));
}

TALLOC_FREE(tmp_ctx);
Expand Down

0 comments on commit 7e004b7

Please sign in to comment.