Environment: gcc -ansi -Wpedantic -Werror
The CUnit macros for pointers, such as CU_ASSERT_PTR_NOT_NULL(), cannot be used with function pointers, because their definition casts the pointer arguments to "void *".
In strict, warning-free ANSI C ("gcc -ansi -Wpedantic -Werror"), a function pointer may not be cast to an object pointer, and the GNU compiler will reject any program which attempts to do so.
Removing the cast to "void *" means that the code compiles without warnings.
Anonymous
Migrated to https://gitlab.com/cunity/cunit/issues/4