I'm getting a strange compile warning. It's intermittent, and doesn't appear every build. I get the warning "initialization makes pointer from integer without a cast" for the following line:
callbackTable *callbacks = generateLoggingCallback();
and, for completeness, this gives the same outcome
callbackTable *callbacks;
callbacks = generateLoggingCallback();
the function prototype for that is:
callbackTable *generateLoggingCallback();
and the implementation is
callbackTable *generateLoggingCallback() { ... }
So, I'm not quite sure what the problem is. Ideas?