chprintf argument warning message
Posted: Sun Mar 01, 2015 3:14 pm
I'm starting to use chprintf again. (stupid of me to try to prevent the code bloat because now I'm spending brain-cycles on stuff that is better done by a computer).
But I get this warning:
The cast was initially put in my code as a copy-paste from the warning message as to what it wanted. But the warning doesn't go away and now it doesn't make sense...
What am I missing?
But I get this warning:
Code: Select all
In file included from main.c:20:0:
../ChibiOS_2.6.6/os/various/chprintf.h:69:20: note: expected 'struct BaseSequentialStream *' but argument is of type 'struct BaseSequentialStream *'
static INLINE void chprintf(BaseSequentialStream *chp, const char *fmt, ...) {
The cast was initially put in my code as a copy-paste from the warning message as to what it wanted. But the warning doesn't go away and now it doesn't make sense...
What am I missing?