This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Disable Keil warning

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

Parents
  • 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...).

Reply
  • 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...).

Children
No data