This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -Wconversion not right (<32 bit problem)
- To: Jim Wilson <wilson at cygnus dot com>
- Subject: Re: -Wconversion not right (<32 bit problem)
- From: "J. Kean Johnston" <jkj at sco dot com>
- Date: Fri, 3 Oct 1997 12:44:41 -0700 (PDT)
- cc: EGCS Mailing List <egcs at cygnus dot com>, GCC2 Mailing List <gcc2 at cygnus dot com>
On Thu, 2 Oct 1997, Jim Wilson wrote:
> Part of the problem here is that -Wconversion does two different things:
> 1) It emits warnings for ANSI C code using questionable constructs.
Perhaps this should be what -Wconversion reports. But I question whether
the code really is questionable or not. It is well casted and prototyped.
Given the original sample, the code is clean and should not emit a
warning at all, especially in -ansi or -pedantic mode. At best (see below)
it should emit a warning if -Wtraditional is specified.
> 2) It emits warnings that are useful for people converting K&R C code to
> ANSI C.
And This should be moved to -Wtraditional
JKJ