explicitly cast the output of find_symbol function

This commit is contained in:
Christian Wressnegger 2015-11-30 15:11:35 +01:00
parent 097d3ede68
commit 447d03f49e

View File

@ -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