emacs-devel
[Top][All Lists]
Advanced

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

Re: Towards a cleaner build


From: Noam Postavsky
Subject: Re: Towards a cleaner build
Date: Fri, 17 May 2019 07:25:01 -0400

On Fri, 17 May 2019 at 06:11, Lars Ingebrigtsen <address@hidden> wrote:
>
> Eli Zaretskii <address@hidden> writes:
>
> > I thought about something even more focused, like
> >
> >   (declare 'warning-about-arguments-mismatch 'off)
> >
> > inside the function's body.
>
> Would that switch off warnings about all argument mismatching in the
> function's body?  Because that sounds a bit drastic, too, since you
> would want to have warnings about all other function calls with argument
> mismatches...
>
>   (declare 'warning-about-arguments-mismatch 'display-completion-list 'off)
>
> perhaps?

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.

> But there's other things you may want to disable warnings about that
> perhaps won't be that easy to express, so `with-no-warnings' seems more
> focused and convenient...

https://debbugs.gnu.org/4837 "with-fewer-warnings ?" talks about
adding something even more focused than with-no-warnings.



reply via email to

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