Re: -Wparentheses is less sensitive in g++

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

 



On Wednesday 19 January 2005 18:38, you wrote:
> Dunno about the parentheses, but you should have two ampersands in there
> instead of one...
>
>   if (a>0 && b>0)

To be more precise: I really _want_ that g++ warns me about it when I use
(a>0 & b>0)! g++ seems to be much more sloppy than gcc with warnings. Another
issue is

  char a = 1024;

gcc warns about ``overflow in implicit constant conversion'', g++ does not.
Why?

Is there any way to improve the g++ warning level? I've tried anything
(-Wparentheses, -Wall, -W) but nothing helps. Should I file a bug report?

Frank
-- 
## Dept. of Computer Science, Dresden University of Technology, Germany ##
## http://os.inf.tu-dresden.de/~fm3                                     ##

Attachment: pgpLO1i5neVB1.pgp
Description: PGP signature


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux