[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Towards a cleaner build
From: |
Lars Ingebrigtsen |
Subject: |
Re: Towards a cleaner build |
Date: |
Sun, 09 Jun 2019 17:50:38 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Noam Postavsky <address@hidden> writes:
> The warning can be suppressed with (ignore foo), so I guess
>
> (defun bar (foo)
> (with-suppressed-warnings ((unused foo))
> nil))
>
> Could expand to
>
> (defun bar (foo)
> (progn
> (ignore foo)
> nil))
>
> Although that does mean you have make sure to only use that within the
> scope of foo.
Yeah... But I think perhaps pointing the users to `ignore' here is the
right thing to do.
By the way, this reminds me: Is there any reason why
(declare (ignore foo)) isn't supported? We've embraced `declare' for
other things, so I think it makes sense to do that for `ignore', too.
(And perhaps then later mark simple `ignore' as obsolete.)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: Towards a cleaner build, Lars Ingebrigtsen, 2019/06/09
- Re: Towards a cleaner build, Lars Ingebrigtsen, 2019/06/09
- Re: Towards a cleaner build, Noam Postavsky, 2019/06/09
- Re: Towards a cleaner build,
Lars Ingebrigtsen <=
- Re: Towards a cleaner build, Stefan Monnier, 2019/06/09
- Re: Towards a cleaner build, Lars Ingebrigtsen, 2019/06/09
- Re: Towards a cleaner build, Lars Ingebrigtsen, 2019/06/09
- Re: Towards a cleaner build, Eli Zaretskii, 2019/06/11
- Re: Towards a cleaner build, Lars Ingebrigtsen, 2019/06/12
- Re: Towards a cleaner build, Lars Ingebrigtsen, 2019/06/12
- Re: Towards a cleaner build, Stefan Monnier, 2019/06/12
- Re: Towards a cleaner build, Lars Ingebrigtsen, 2019/06/12
- Re: Towards a cleaner build, Stefan Monnier, 2019/06/13
- Re: Towards a cleaner build, Lars Ingebrigtsen, 2019/06/13