Hello,

I just noticed this warning, and I am not sure how to address it (or
whether I should).  Given the following file (`test.scm')

--8<---------------cut here---------------start------------->8---
(use-modules (rnrs records syntactic))

(define-record-type a)
(define-record-type b)
--8<---------------cut here---------------end--------------->8---

I receive this warning when I compile it:

--8<---------------cut here---------------start------------->8---
$ guild compile -Wshadowed-toplevel -o test.go test.scm 
test.scm:4:0: warning: shadows previous definition of `dummy-1a78708d3c9406a3' 
at test.scm:3:0
wrote `test.go'
$ guild --version
guild (GNU Guile) 3.0.11
Copyright (C) 2024 Free Software Foundation, Inc.

License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
--8<---------------cut here---------------end--------------->8---

Am I doing something I am not supposed to (like, is define-record-type
limited to once per module or something)?  Looking at the expansion of
the macro, it *seems* safe to ignore the warning?

Thanks.

Tomas

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

Reply via email to