bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: its a bug - right


From: Greg Chicares
Subject: Re: its a bug - right
Date: Tue, 12 Jun 2001 23:03:06 -0400

roger wrote:
> 
> >It will if you specify '-Wconversion'. As you point out,
> >the warning appears in a C++ compile even if you don't
> >specify that flag; I don't know why the behavior differs
> >this way between C and C++ compiles.
> 
> Sigh, I was using gcc -Wall, which I though meant *all* warnings.
> But no, apparantly it doesn't mean that anymore (didn't it used to?)

-Wall leaves many warnings turned off. ("Some of them warn
about constructions that users generally do not consider
questionable, but which occasionally you might wish to
check for; others warn about constructions that are
necessary or hard to avoid in some cases, and there is no
simple way to modify the code to suppress the warning.")
I don't know what it did years ago.

> With -Wconversion I do see that warning.
> Too bad I can't suppress it with -Wno-conversion in the g++ compile.
> 
> >
> >> The sun C++ compiler doesn't warn about this construct either.
> >
> >The construct conforms to the standard, so no warning
> >is required.
> 
> Then it seems like there should be a way to supress it, no?

I can't find a way. -Wno-conversion and -Wno-sign-promo
don't turn it off.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]