On 08-05-2012 01:25, bearophile wrote:
They are discussing about having -Wall on default in GCC 4.8:
http://gcc.gnu.org/ml/gcc/2012-04/msg00087.html
http://gcc.gnu.org/ml/gcc/2012-04/threads.html#00092
In D.learn I've seen plenty of people not use -wi (or -w) in D
programming, and this has caused some troubles.
So what do you think about having "-wi" (and even -property too) on
default in D (and have a compiler switch to disable warnings on request)?
Bye,
bearophile
We should strive to avoid warnings at all. Usually (though not always)
something that is a warning should really be an error.
That said, I think turning these on by default is a very good idea.
I think individual options to turn specific warnings off will complicate
things too much. What I think we should do is make -wi the default and
make an option that is just the inverse. I think that will suffice for
most real use cases (I mean, we're D, not C; we don't have over 9000
warning variants).
--
- Alex