mirror of
https://github.com/darlinghq/ctest.git
synced 2025-03-04 13:57:43 +00:00
explicitly cast the output of find_symbol function
This commit is contained in:
parent
097d3ede68
commit
447d03f49e
4
ctest.h
4
ctest.h
@ -481,10 +481,10 @@ int ctest_main(int argc, const char *argv[])
|
||||
if (result == 0) {
|
||||
#ifdef __APPLE__
|
||||
if (!test->setup) {
|
||||
test->setup = find_symbol(test, "setup");
|
||||
test->setup = (SetupFunc) find_symbol(test, "setup");
|
||||
}
|
||||
if (!test->teardown) {
|
||||
test->teardown = find_symbol(test, "teardown");
|
||||
test->teardown = (SetupFunc) find_symbol(test, "teardown");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user