From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: Towards a cleaner build Date: Sun, 9 Jun 2019 11:02:53 -0400 Message-ID: References: <83zhn6zkgf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="67351"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Eli Zaretskii , Stefan Monnier , Emacs developers To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 09 17:03:45 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hZzMH-000HQv-IM for ged-emacs-devel@m.gmane.org; Sun, 09 Jun 2019 17:03:45 +0200 Original-Received: from localhost ([::1]:36258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZzMG-0000qI-Gg for ged-emacs-devel@m.gmane.org; Sun, 09 Jun 2019 11:03:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35875) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZzMA-0000nI-DK for emacs-devel@gnu.org; Sun, 09 Jun 2019 11:03:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hZzM9-0001QV-KJ for emacs-devel@gnu.org; Sun, 09 Jun 2019 11:03:38 -0400 Original-Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]:35473) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hZzLx-0000rl-Ib; Sun, 09 Jun 2019 11:03:26 -0400 Original-Received: by mail-ot1-x336.google.com with SMTP id j19so6109401otq.2; Sun, 09 Jun 2019 08:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=P/ENPlpvfpTOI39u93LYDIR8oILey57ynkVtxDsdyOw=; b=mxN4x/1whdL8pgMYnU7ezFkjZEGbSqHgM8y4yKJ09MR4+MDQaMXCppAK/Sq1ZjOyds rde85qndveBRen/EYO9CdtmDqt7WpBKEBRjDbY80XF3iIuOoSb0H9bv6d8r52ubAMby+ V1VFuzciK+Ly73BHl4Ub1iq9CbI1jv8SklLi5z2eVGVWsbfQJXbABufklWY7oE/7vsX1 OBvQ+MtNrY0tToyeDntzMofssga5L0d5Y4fhvFfAyzX+czHlNTGJw6dhwTtVK4K4ZMYk 4VLNqtE/8sI+BWOKg48+TdZySYBMgB5P4iHdjF4qQPEHu5MJ8WQdKSrMXQiDKNzQFafo jznQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=P/ENPlpvfpTOI39u93LYDIR8oILey57ynkVtxDsdyOw=; b=cpJRd/ittWzczQF3SZ1xbKZRuu3lUfD/mnelb3BSgBDlH2+BZnlpqkOYtBd6JDOCC2 mLiJiSrMAe6TBPtoaOjP/pxCY9yxo05C9F79Up3ZzOXh+spk44YXxoeqlHhMGvT1GLyJ rdhakas8Tz0DVhJPGyvDO0+iY+lJKZzEk+P1398ZC8oyJvhQJ+HDR1JNbev81RwoLh5n qNZ+6Weh/w3ySV9JDuzmVtrW7XiPUMdQBSaG0PKTmd7BRTZIxUaNkrFm+T/hFbaLgfyT lFdJq5mnwGC379eu55+Bjdq+K58Nu8jP4wkJ1dD9YlPbM++yodt1rFk7WiYRJl1xZPbB zxcg== X-Gm-Message-State: APjAAAVWXttpjAU4kORijDEfy5HeIQZ/G0kyUW3WXn3evhwcjFbWjuwj jsRhRp7r8RuLdiqUUfmazZtgIDm1qg5eHKrwa5Q= X-Google-Smtp-Source: APXvYqw2lhIQxiUDZu37kZviN5x4jPc9SFYZGKlqsBypzb/I4qqF9vQ7wO7N2P5NRzdTpYglN+A8fz8RixVAgFZ8Ou0= X-Received: by 2002:a05:6830:1cd:: with SMTP id r13mr5806577ota.99.1560092589766; Sun, 09 Jun 2019 08:03:09 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::336 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237346 Archived-At: On Sun, 9 Jun 2019 at 10:53, Lars Ingebrigtsen wrote: > (with-suppressed-warnings ((unused foo)) > (defun bar (foo) > nil)) > > ? > > Looks kinda janky. Perhaps a `declare' would be more sensible. Or not > being able to use `with-suppressed-warnings' here. 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.