pkgsrc-Changes archive

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

Re: CVS commit: pkgsrc/devel/cmph



Aleksej Saushev wrote:
> Removal of "-Werror" is equivalent to setting a mine, since some compilers,
> GCC is the best example, optimize aggressively, and thus any warning counts.
> Without "-Werror" a package may build but work incorrectly, and these
> problems are frequently very hard to debug.

I have never seen any this kind of problem. But I've worked with some
projects who used -Werror in the released code and all these projects
dropped it after some time. The problem is that gcc is full of bugs
emitting bogus warnings in various situations. Look at gcc bugzilla,
there are tens of such bugs open and hundreds of such bugs are closed,
but exist in compilers people still use.

If you want to use -Werror in the release code, you will end up spending
more time working around gcc (and clang, icc, etc) bugs than writing a
real code. Been there, done that.

Just my 2c.


-- 
Hasso Tepper



Home | Main Index | Thread Index | Old Index