This is the mail archive of the gcc@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]

Re: -Wconversion not right (<32 bit problem)


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



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