unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* guild raises warnings about unused variable from SRFI-64
@ 2021-03-30 14:40 Jérémy Korwin-Zmijowski
  2021-03-31 16:23 ` Aleix Conchillo Flaqué
  0 siblings, 1 reply; 5+ messages in thread
From: Jérémy Korwin-Zmijowski @ 2021-03-30 14:40 UTC (permalink / raw)
  To: Guile User

Hello Guilers,

While using SRFI-64, I rely on guild to give the more feedback it can
about my code. But sometimes, the cause doesn't come from my code and
the warnings get annoying like this one from SRFI-64 each time I call a
test-* macro:

   warning: unused variable `name'

I would like to ask if someone already came up with a fix for it. 
I do need this warning type. So maybe there is a way to act locally.

Cheers,
Jérémy




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guild raises warnings about unused variable from SRFI-64
  2021-03-30 14:40 guild raises warnings about unused variable from SRFI-64 Jérémy Korwin-Zmijowski
@ 2021-03-31 16:23 ` Aleix Conchillo Flaqué
  2021-03-31 19:47   ` Jérémy Korwin-Zmijowski
  0 siblings, 1 reply; 5+ messages in thread
From: Aleix Conchillo Flaqué @ 2021-03-31 16:23 UTC (permalink / raw)
  To: Jérémy Korwin-Zmijowski; +Cc: Guile User

Hi Jeremy,

On Tue, Mar 30, 2021 at 7:50 AM Jérémy Korwin-Zmijowski
<jeremy@korwin-zmijowski.fr> wrote:
>
> Hello Guilers,
>
> While using SRFI-64, I rely on guild to give the more feedback it can
> about my code. But sometimes, the cause doesn't come from my code and
> the warnings get annoying like this one from SRFI-64 each time I call a
> test-* macro:
>
>    warning: unused variable `name'
>
> I would like to ask if someone already came up with a fix for it.
> I do need this warning type. So maybe there is a way to act locally.
>

Can you provide a small example on how you get this? A small test that
causes this and the guild command you use would be great.

Best,

Aleix



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guild raises warnings about unused variable from SRFI-64
  2021-03-31 16:23 ` Aleix Conchillo Flaqué
@ 2021-03-31 19:47   ` Jérémy Korwin-Zmijowski
  2021-04-01  6:13     ` Aleix Conchillo Flaqué
  0 siblings, 1 reply; 5+ messages in thread
From: Jérémy Korwin-Zmijowski @ 2021-03-31 19:47 UTC (permalink / raw)
  To: Aleix Conchillo Flaqué; +Cc: Guile User

Hello Aleix !

> Can you provide a small example on how you get this? A small test
> that
> causes this and the guild command you use would be great.

Here is a small one :

   (use-modules (srfi srfi-64))
   (test-begin "a-group")
   (test-assert "a-test" #t)
   (test-end)

And the guild command (it requires a warning level of 3 to raise it) :

   $ guild compile -W3 t.scm 

With the output :

   t.scm:3:0: warning: unused variable `name'
   wrote `/home/jeko/.cache/guile/ccache/3.0-LE-8-4.4/tmp/t.scm.go'

Thank you for considering my message !

Jérémy




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guild raises warnings about unused variable from SRFI-64
  2021-03-31 19:47   ` Jérémy Korwin-Zmijowski
@ 2021-04-01  6:13     ` Aleix Conchillo Flaqué
  2021-04-01 11:53       ` Jérémy Korwin-Zmijowski
  0 siblings, 1 reply; 5+ messages in thread
From: Aleix Conchillo Flaqué @ 2021-04-01  6:13 UTC (permalink / raw)
  To: Jérémy Korwin-Zmijowski; +Cc: Guile User

On Wed, Mar 31, 2021 at 12:47 PM Jérémy Korwin-Zmijowski
<jeremy@korwin-zmijowski.fr> wrote:
>
> Hello Aleix !
>
> > Can you provide a small example on how you get this? A small test
> > that
> > causes this and the guild command you use would be great.
>
> Here is a small one :
>
>    (use-modules (srfi srfi-64))
>    (test-begin "a-group")
>    (test-assert "a-test" #t)
>    (test-end)
>
> And the guild command (it requires a warning level of 3 to raise it) :
>
>    $ guild compile -W3 t.scm
>
> With the output :
>
>    t.scm:3:0: warning: unused variable `name'
>    wrote `/home/jeko/.cache/guile/ccache/3.0-LE-8-4.4/tmp/t.scm.go'
>
> Thank you for considering my message !
>

I have submitted an srfi-64 patch to fix this.

Aleix



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guild raises warnings about unused variable from SRFI-64
  2021-04-01  6:13     ` Aleix Conchillo Flaqué
@ 2021-04-01 11:53       ` Jérémy Korwin-Zmijowski
  0 siblings, 0 replies; 5+ messages in thread
From: Jérémy Korwin-Zmijowski @ 2021-04-01 11:53 UTC (permalink / raw)
  To: Aleix Conchillo Flaqué; +Cc: Guile User

Le mercredi 31 mars 2021 à 23:13 -0700, Aleix Conchillo Flaqué a
écrit :
> I have submitted an srfi-64 patch to fix this.
> 
> Aleix

I have to read it ! haha

Did you submit it to Guile or SRFI-64 ?

Jérémy




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-01 11:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-30 14:40 guild raises warnings about unused variable from SRFI-64 Jérémy Korwin-Zmijowski
2021-03-31 16:23 ` Aleix Conchillo Flaqué
2021-03-31 19:47   ` Jérémy Korwin-Zmijowski
2021-04-01  6:13     ` Aleix Conchillo Flaqué
2021-04-01 11:53       ` Jérémy Korwin-Zmijowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).