Warning: Variable assigned but never used?
Posted: Fri Nov 12, 2021 12:26 pm
Hello!
XS 2.8c, Visual Studio 2019 16.11.6, Win 10 Enterprise 20H1
In code
I get the warning:
...Standard Shell.prg(87,8 ): warning XS0219: The variable 'oOD' is assigned but its value is never used
Is this intended?
If I omit oOD completely or
make 2 lines of it 1. with assignment, 2. oOD:Show()
there are no warnings anymore.
Just a minor thing, but wanted to ask/report.
BR Kurt
XS 2.8c, Visual Studio 2019 16.11.6, Win 10 Enterprise 20H1
In code
Code: Select all
METHOD HelpAboutDialog()
LOCAL oOD AS Info
(oOD := Info{SELF}):Show()
RETURN NIL
...Standard Shell.prg(87,8 ): warning XS0219: The variable 'oOD' is assigned but its value is never used
Is this intended?
If I omit oOD completely or
make 2 lines of it 1. with assignment, 2. oOD:Show()
there are no warnings anymore.
Just a minor thing, but wanted to ask/report.
BR Kurt