The existing prototype in check.h is `const char* tcase_name()`. This
causes issues on platforms that use strict prototype checking, e.g. the
latest clang compiler with -Wstrict-prototypes ('this function
declaration is not a prototype [-Werror,-Wstrict-prototypes]').
current_test_name = fname;
}
-const char* tcase_name()
+const char* tcase_name(void)
{
return current_test_name;
}
*
* @since 0.11.0
*/
-CK_DLL_EXP const char* CK_EXPORT tcase_name();
+CK_DLL_EXP const char* CK_EXPORT tcase_name(void);
/**
* Start a unit test with START_TEST(unit_name), end with END_TEST.