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

Warning if type mismatch

I have one file in which I use "int16_t x", when I declared it in other file, by mistake I have declared "extern int8_t x". i.e int8_t is used instead of int16_t.

But compiler do not generate warning for this. Why.
Is there any method for it or it has to be taken care by the programmer only.

Parents Reply Children
  • Quote: But there is no requirement for them to be so, and many (most?) aren't

    I remember reading an article from Microsoft on their (then proposed) compiler technologies which spoke about doing this very thing. I gave up at the .net system, maybe they implemented such things in that.