SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
|||
clang 15 doesn't allow implicit conversions from intptr_t to pointer.
|
||||
|
||||
Index: tests/cgreen/src/constraint.c
|
||||
--- tests/cgreen/src/constraint.c.orig
|
||||
+++ tests/cgreen/src/constraint.c
|
||||
@@ -164,8 +164,8 @@ static void test_want_double(Constraint *constraint, c
|
||||
}
|
||||
|
||||
static int compare_using_matcher(Constraint *constraint, intptr_t actual) {
|
||||
- int (*matches)(const void*) = constraint->expected;
|
||||
- return matches(actual);
|
||||
+ int (*matches)(const void*) = (int (*)(const void *))constraint->expected;
|
||||
+ return matches((void *)actual);
|
||||
}
|
||||
|
||||
static void test_with_matcher(Constraint *constraint, const char *function, const char* matcher_name, intptr_t matcher_function, const char *test_file, int test_line, TestReporter *reporter) {
|
Loading…
Add table
Add a link
Reference in a new issue