Tool/software: TI C/C++ Compiler
I am using the TI compiler in CCS version 8.0.0.00016. The code is being compiled for a Tiva 129X ARM processor.
I have some code that declares some variables as "unsigned long", and then passes pointers to those variables as parameters to a TivaWare function that expects "uint32_t*" for the parameters. The compiler is complaining that the types are incompatible. However, according to the compiler manual, "unsigned long" is a 32-bit value. Why does the compiler generate a warning when the types are equivalent? And is there any way to fix this, short of disabling the warning message (which may result in me missing valid parameter type mismatches)?
Ordinarily, I would just change the unsigned long to uint32_t and be done with it. But I am trying to port legacy code written using a different compiler to CCS. There are hundreds of places this warning is going to occur.
Thanks for your help.
Regards,
Dave