[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#47080: 28.0.50; Spurious variable left uninitialized compiler warnin
From: |
Lars Ingebrigtsen |
Subject: |
bug#47080: 28.0.50; Spurious variable left uninitialized compiler warning |
Date: |
Fri, 12 Mar 2021 04:07:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> Indeed, it's a useless binding: you could just use nil instead wherever
> you use that var, so the warning is working as intended. And indeed, it
> found a few places where we bound a var to nil and then just
> returned its value (and it's thanks to this warning that I discovered
> that those var needed to be declared as dynamically scoped).
Oh, is that what the warning means. :-) It's not immediately
obvious -- could it be changed to something like... er... "Variable
bound to constant value and not changed"?
> But the above `pcase` and `syntax-propertize-rules` show that it can be
> quite inconvenient. I can probably fix `pcase` to work around the
> issue, but ... it's probably better to tone down the warning so it's
> only issued if the nil binding is implicit rather than explicit.
Right.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#47080: 28.0.50; Spurious variable left uninitialized compiler warning, Michael Heerdegen, 2021/03/11
- bug#47080: 28.0.50; Spurious variable left uninitialized compiler warning, Lars Ingebrigtsen, 2021/03/11
- bug#47080: 28.0.50; Spurious variable left uninitialized compiler warning, Michael Heerdegen, 2021/03/11
- bug#47080: 28.0.50; Spurious variable left uninitialized compiler warning, Stefan Monnier, 2021/03/11
- bug#47080: 28.0.50; Spurious variable left uninitialized compiler warning,
Lars Ingebrigtsen <=
- bug#47080: 28.0.50; Spurious variable left uninitialized compiler warning, Stefan Monnier, 2021/03/11
- bug#47080: 28.0.50; Spurious variable left uninitialized compiler warning, Michael Heerdegen, 2021/03/12
- bug#47080: 28.0.50; Spurious variable left uninitialized compiler warning, Stefan Monnier, 2021/03/12
- bug#47080: 28.0.50; Spurious variable left uninitialized compiler warning, Michael Heerdegen, 2021/03/12
- bug#47080: 28.0.50; Spurious variable left uninitialized compiler warning, Stefan Monnier, 2021/03/12