[Top][All Lists]

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

Re: Towards a cleaner build

From: Stefan Monnier
Subject: Re: Towards a cleaner build
Date: Fri, 17 May 2019 08:33:36 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> This makes sense, but it should come for free. There's never any point
> in issuing a warning about not using the advertised calling convention
> from inside the function itself. Similarly, we shouldn't issue
> warnings about calls to obsolete functions from bodies of functions
> that are themselves obsolete.

I generally agree, but there's a tension: this kind of reasoning can be
pushed pretty far and the amount of coding involved can be hard to
justify.  So there's also something to be said for leaving the
implementation dumb and asking the coder to add a few more

IOW whether it's worth the effort depends on the amount of complexity
needed in the compiler and the number of false-positives it eliminates
(and potentially the number of false-negatives it adds, tho this is
rarely a problem).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]