public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* surpressing warnings
@ 2001-10-30 19:19 Chris Croswhite
  0 siblings, 0 replies; only message in thread
From: Chris Croswhite @ 2001-10-30 19:19 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-10-30 19:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-30 19:19 surpressing warnings Chris Croswhite

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).