Is this legal?
In GCC, I get a warning:Code:struct Test { void (*ptr)(void* p, ...); }; void myfunction(void* p, int arg1, int arg2) {} Test test = { myfunction };
warning: initialization from incompatible pointer type [enabled by default]
warning: (near initialization for 'test.ptr') [enabled by default]




Reply With Quote