I get a weird compilation warning. It is intermittent, and every assembly does not appear. I get a warning "initialization makes a pointer from a whole without casting" for the following line:
callbackTable *callbacks = generateLoggingCallback();
and, for completeness, this gives the same result
callbackTable *callbacks; callbacks = generateLoggingCallback();
function prototype for this:
callbackTable *generateLoggingCallback();
and implementation -
callbackTable *generateLoggingCallback() { ... }
So I'm not quite sure what the problem is. Ideas?
source share