<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I have to question the wisdom of this approach at all. Warnings should<br>
help to write good code, even if it may happen to work in a few cases.<br>
When int and long are the same size, then we have incorrect code that<br>
happens to work. I think we should leave this warning on and encourage<br>
users to make their code correct so that it doesn't break when they move<br>
to an LP64 environment.<br></blockquote><div><br>I tend to agree - I do have some amount of pain working with a compiler (MSVC) & on a team that produces multi-architecture binaries, getting warnings (when we use warnings-as-errors, and thus break the build) in certain flavors that aren't shown in others can be quite a pain. Though I can somewhat understand that people aren't necessarily used to such pedantry & this might need some way to differentiate itself as a different class of warning.<br>
<br>(one of the weirder ones I've seen on MSVC is that I don't get sign mismatch between size_t and int on 64 bit (I assume because size_t is 64 bit unsigned on a 64 bit build, so int can implicitly convert to a 64 bit unsigned value) but on 32 bit you get a sign mismatch warning/error/build break) <br>
<br>- David<br></div></div>