This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch to add -Wno-int-to-pointer-cast and -Wno-pointer-to-int-cast



On Apr 19, 2005, at 9:10 PM, Joseph S. Myers wrote:


This patch adds options to control the C front end warnings (on by
default) for casts between pointers and integers of different size.

There are two patches here.  The first will be applied to
csl-sol210-3_4-branch after testing on i386-pc-solaris2.10.  The
second has been bootstrapped with no regressions on
x86_64-unknown-linux-gnu; applied to mainline.

Question is why would anyone have an option to turn this off, it seems like they just don't want to fix their code to add a cast.

-- Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]