I have a function that should return the SysTick variable:
uint32_t TickGet(void){
return SysTick;
}
However SysTick is defined as an int:
int SysTick;
For some reason, the XC32 compiler is perfectly happy with this arrangement. No warnings warnings whatsoever are thrown. Not even with -Wall as a XC32-GCC option.
Does anyone know how to get the XC32 compiler to list this warning?
edit, ofcourse I want the SysTick variable to be defined as an uint32_t. That's besides the point, my problem is with the compiler not throwing warnings for such occasions.