unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* build-lexical-var vs. -Wunused-variable
@ 2012-02-17 11:00 Ludovic Courtès
  2012-02-19 21:08 ` Andy Wingo
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2012-02-17 11:00 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 100 bytes --]

Hello,

Commit f9685f437312ea790981373ddc375b2a26ba9c4f changes
‘build-lexical-var’ like this:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 166 bytes --]

     (define-syntax-rule (build-lexical-var src id)
-      (gensym (string-append (symbol->string id) " ")))
+      (gensym (string-append (symbol->string id) "-")))

[-- Attachment #3: Type: text/plain, Size: 284 bytes --]


This breaks a heuristic used in the ‘unused-variable’ pass, which is
that identifiers containing white space are likely introduced by a macro
and can be ignored in unused-variable reports (see ‘gensym?’ in
‘tree-il/analyze.scm’).

OK to change it back?

Thanks,
Ludo’.

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

end of thread, other threads:[~2013-01-16 14:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-17 11:00 build-lexical-var vs. -Wunused-variable Ludovic Courtès
2012-02-19 21:08 ` Andy Wingo
2012-02-23  3:36   ` Mark H Weaver
2012-03-01 18:26     ` Ludovic Courtès
2013-01-16 10:40     ` Andy Wingo
2013-01-16 12:17       ` Ludovic Courtès
2013-01-16 12:27         ` Andy Wingo
2013-01-16 14:25           ` Ludovic Courtès

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).