-Wconversion not right (<32 bit problem)

J. Kean Johnston jkj@sco.com
Fri Oct 3 12:45:00 GMT 1997


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




More information about the Gcc mailing list