Hello,
I've been trying to remove a compiling warning (C182) without success.
Can anyone point me in the right direction? Is there a directive available to disable a specific warning ?
Thank you.
8051 architecture, c51 compiler
Yes - I most certainly do:
how could fixing the pointer type possibly affect the performance??
You are neither fixing nor changing any assembly code with this cast. So it has not ANY implication on performance.
This cast (int*) is just the assurance to the compiler, that you take the complete responsibility for such a dangerous assignment. (... the compiler in this case then will not give a warning...).