[Insight-developers] 64-Bit Transition Guide: Compiling 64-Bit Code Using GCC
Sean McBride
sean at rogue-research.com
Fri Oct 31 10:46:45 EDT 2008
On 10/31/08 10:35 AM, Luis Ibanez said:
> -Wall
> -Wconversion
> -Wshorten-64-to-32
> -Wformat
>
>
>More details here:
>http://developer.apple.com/documentation/Darwin/Conceptual/64bitPorting/
>building/chapter_5_section_2.html
Despite what that document says, I would generally recommend against -
Wconversion. It generates warnings for perfectly correct code. In gcc
4.3, this useless behaviour of -Wconversion has been changed to be more
useful:
<http://gcc.gnu.org/gcc-4.3/changes.html>
Alas, Apple's gcc fork is at 4.2 not 4.3. :(
Also, note that -Wshorten-64-to-32 is only in Apple's fork of gcc, not
the gcc mainline. :(
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the Insight-developers
mailing list