This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
surpressing warnings
- To: gcc-help at gcc dot gnu dot org
- Subject: surpressing warnings
- From: Chris Croswhite <ccroswhite at get2chip dot com>
- Date: Tue, 30 Oct 2001 20:10:08 -0800
- Reply-To: ccroswhite at get2chip dot com
I need to know how to supress warnings of casting types. That is I get
this message:
xxx.c:186: warning: cast to pointer from integer of different size
This is being compiled on an ia64 machine with gcc2.96 (RH) with g++.
The ints in this case are 32bit while the pointers are 64bits. I
understand that is can cause problems, however, I need to keep it this
way and just need to suppress the warnings. Here are the flags I am
using:
common CFLAGS = -DDEVELOPMENT=1 -D_GNU_SOURCE -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Wall -Dlinux
I do not want to use the -w flags to suppress all just this casting.
TIA,
Chris
begin:vcard
n:Croswhite;Chris
tel;work:001.408.501.9600 - 9525
x-mozilla-html:FALSE
url:www.get2chip.com
org:Get2Chip, Inc.;IT/IS
version:2.1
email;internet:ccroswhite@get2chip.com
adr;quoted-printable:;;2107 North First Street=0D=0ASuite 350;San Jose;CA;95131;USA
x-mozilla-cpt:;-7008
fn:Chris Croswhite
end:vcard