Sébastien Hinderer <sebastien.hinde...@inria.fr> writes:

> Did you notice important changes in the supported warnings between
> different versions of the same compiler?

Yes, mostly that new version of the compiler add new warnings, and
sometimes new warning flags.  I probe for whether the compiler supports
each flag during Autoconf, and periodically I review the release notes of
the two compilers and add new interesting warning flags.

> Are there many warnings in common between (at least one version of)
> clang and (at least one version of) gcc, actually?

I think there is some overlap between the flags (-W -Wall are the same,
for instance), although I didn't investigate in detail because I started
down the -Weverything with a blacklist path with Clang early on and GCC
doesn't (so far as I know) support that.

For the record, apparently the Clang folks don't really want people to use
-Weverything.  I still do anyway, for maintainer builds, and have not had
any real problems with that (and have been grateful to pick up new
warnings automatically), but it shouldn't be a default.

-- 
Russ Allbery (ea...@eyrie.org)             <https://www.eyrie.org/~eagle/>

Reply via email to