develooper Front page | perl.perl5.porters | Postings from September 2016

Re: clang -Weverything

Thread Previous | Thread Next
Andy Lester
September 28, 2016 05:00
Re: clang -Weverything
Message ID:

> On Jul 30, 2016, at 8:36 AM, Jarkko Hietaniemi <> wrote:
> clang has -Weverything which is what one might imagine gcc -Wall
> would mean, but doesn't.
> Patch attached, but NOT to be applied immediately, works on top of
> Why not to be applied immediately?
> Well, the blead is not -Weverything-clean.

Not even close, but I'm taking a stab at it.  Part of it is figuring out which warnings we need to explicitly ignore so that we keep just the stuff we care about.

I've started a branch at and so far the biggies that I think it's safe to knock out are:

        # -Wno-unused-macros: We have tons of macros and it's OK if we don't use them.
        # -Wno-gnu-statement-expression: Commonly used all over the codebase.
        # -Wno-shadow: We have many common global variable names.  We would have to change many local variables.
        # -Wno-overlength-strings: Compiler limit we don't care about
        # -Wno-disabled-macro-expansion
        # -Wno-variadic-macros: We use them.
        # -Wno-cast-align
        # -Wno-extended-offsetof
        # -Wno-c11-extensions

Beyond that, I'm not sure what we're OK with handwaving away.  Thoughts?

Andy Lester =>

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About