I would find a "workaround" for the hint / warning.
No, not to get rid of it, but to make your code more robust. It happens that quickly, that a function is re-written or a result gives back something you never have thought of.
So try this:
myVar:=0;
myResult(myVar);
I hope, there is not warning, "var has never been used" .....
And then there was a compiler message in Delphi similar like
{warnings off}
Sometimes I wrote it on top of a block, - because of such reasons.
Not sure, if there is such a thing in Lazarus as well.
And: I migrate my Delphi code as well at the moment.