On 12/18/2017 03:35 AM, Marek Polacek wrote:
> While looking into something else I noticed that because of the missing
> warn_logical_op check we do unnecessary work in warn_logical_operator, like
> calling fold_for_warn which can put stuff into cv/fold_cache etc. It also
> causes more noise when debugging.
>
> Bootstrapped/regtested on x86_64-linux, ok for trunk?
>
> 2017-12-18 Marek Polacek <pola...@redhat.com>
>
> * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
> not in effect.
OK.
jeff