From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH 0/3] Add '-Wunused-module' Date: Mon, 20 Feb 2023 11:51:25 +0100 Message-ID: <874jrgk3te.fsf@gnu.org> References: <20230203181126.5ee4003c@tachikoma.lepiller.eu> <20230211233234.14425-1-ludo@gnu.org> <874jrq21k1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2295"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cc: guile-devel@gnu.org, dezyne-devel@nongnu.org To: Jan Nieuwenhuizen Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Mon Feb 20 11:51:51 2023 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pU3lv-0000SC-It for guile-devel@m.gmane-mx.org; Mon, 20 Feb 2023 11:51:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pU3ld-00066i-06; Mon, 20 Feb 2023 05:51:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pU3lZ-00065o-U3; Mon, 20 Feb 2023 05:51:30 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pU3lZ-0002M3-Kj; Mon, 20 Feb 2023 05:51:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=+7DNnKOKz+xJ3Ai5EWX5vKkr/i68uyTqm+oUSSIPKDY=; b=quzQzB7HTFjbIZaZmtmh 9ms5MujPLf25ALpVRVoJQUny3FEUVy5YKmZkK6836IVjJkqtJxrD6DQ4N7iY+4xJzJBnXsEXdhvLP o3XTEQfTYv5724wJyGnyR5o9+W+wOkS4yjv/ULsNCIqKEByky/Jo/DkNvAN2AShYNvsJCTOUxI7Oo jtcqSKXtE5KcPopVTc1t7GJkjcRIJo755Idz7DSNxsIIHtzgQ6Npx1QaZlcs3WVelaGUZKYnuc4n2 488ZGSgAcPHx8TJCDJtPsCumvAGtQvmJVXfoP1R+FpZuUccBfN92F/fbxg8R2uNewwwWBnkEUwqyc SSvEeMAycnWwdA==; Original-Received: from [193.50.110.154] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pU3lX-0004l4-CW; Mon, 20 Feb 2023 05:51:29 -0500 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Duodi 2 =?utf-8?Q?Vent=C3=B4se?= an 231 de la =?utf-8?Q?R=C3=A9volution=2C?= jour du Cornouiller X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu In-Reply-To: <874jrq21k1.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Sun, 12 Feb 2023 19:14:54 +0100") X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:21718 Archived-At: Hey janneke! Jan Nieuwenhuizen skribis: > Ludovic Court=C3=A8s writes: > > Hello, > >> The new =E2=80=98-Wunused-module=E2=80=99 warning is enabled at =E2=80= =98-W2=E2=80=99 only. The main >> reason for not enabling it at =E2=80=98-W1=E2=80=99 is that in the case = of modules used >> at macro-expansion time only, such as (srfi srfi-26), it cannot >> determine whether a module is definitely unused. In this case, the >> compiler reports the module as =E2=80=9Cpossibly unused=E2=80=9D, and it= is up to the >> programmer to check that claim. > [..] >> Thoughts? > > The `possibly undefined' warnings about the srfi-9 gnu, srfi-26 and > curried-definition modules are a bit unfortunate, but easy to check. > It allowed me to trim quite some imports in Dezyne modules. > Very nice! Good! > It seems that only re-exporting a (non-macro) variable from an otherwise > un used module gives a false positive `unused module' warning; it > doesn't even say `possibly unused module'. Not a big problem, but can > anything be done about that? Oh, I hadn=E2=80=99t thought about that. It should be possible to fix it, = I=E2=80=99ll take a look. Thanks for testing! Ludo=E2=80=99.