Hi
can someone please help me with comparison between pointer and integer ('uint16_t' (aka 'unsigned short') and 'void *') [-Wpointer-integer-compare] problem
uint16_t no_of_repetition = 0; // no of repeat cycle
Regards
David
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi
can someone please help me with comparison between pointer and integer ('uint16_t' (aka 'unsigned short') and 'void *') [-Wpointer-integer-compare] problem
uint16_t no_of_repetition = 0; // no of repeat cycle
Regards
David
Hi David,
I agree with TheGhostOf, this is more of a C question.
It looks like you are comparing an actual uint16_t variable, and a NULL pointer, hence the warning.
Try replacing NULL by an arbitrary number.
Regards,
Arthur