On Fri, 20 Nov 2026, "Dr. Arne Babenhauserheide" <[email protected]> wrote: > Tomas Volf <[email protected]> writes: > >> The problem is that Guile currently offers no mechanism to suppress >> specific *instances* of a warning. So, e.g. I in general do want the >> `unused variable' warnings to be emitted, but some of them cannot be >> addressed (e.g., warning: unused variable `failure'), -Wno will not >> help. > > Do you mean something like linter-annotations? e.g. > > (define foo #! nowarn:unused-variable !# > 1)
I was thinking more in term of lexical annotations: (#pragmas ((#:disable-warning unused-variable)) (define foo 1)) Or any other syntax really. But I would like it to be scoped. > ? > > Best wishes, > Arne > -- > Unpolitisch sein > heißt politisch sein, > ohne es zu merken. > https://www.draketo.de -- Olivier Dion
