On Wed, Apr 03, 2013 at 02:16:30PM +0100, Pedro Martelletto wrote: > Hi, > > Apple has added a -Wshorten-64-to-32 option to GCC. It generates a > warning if a value is implicitly converted from a 64-bit to a 32-bit > type. I found it useful, looked at the code and ported it to OpenBSD. > > I don't think this is worth integrating. Use at your own discretion. :)
clang comes with -Wshorten-64-to-32 as well, not included as part of -Wall but is with -Weverything.