Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

FalsePositive O803

 Post Reply Post Reply
Author
Sveinsson Kjaran View Drop Down
New Member
New Member
Avatar

Joined: 18 Nov 2016
Posts: 6
Post Options Post Options   Quote Sveinsson Kjaran Quote  Post ReplyReply Direct Link To This Post Topic: FalsePositive O803
    Posted: 18 Nov 2016 at 11:40am
The following code displays
[FixInsight Optimization] uMain.pas(25): O803 Constant 'ValueBit' is declared but never used

If the constant is moved inside the procedure then there is no warning.

const
  ValueBit: byte = $80;

procedure FalsePositive(var AFlag: byte; AActive: boolean);
begin
  if AActive then begin
    AFlag:= AFLag OR ValueBit;
  end;
end;

Back to Top
Roman Yankovsky View Drop Down
New Member
New Member
Avatar

Joined: 21 Jun 2016
Posts: 26
Post Options Post Options   Quote Roman Yankovsky Quote  Post ReplyReply Direct Link To This Post Posted: 18 Nov 2016 at 2:05pm
Odd. Actually, I cannot reproduce this issue.
Back to Top
Sveinsson Kjaran View Drop Down
New Member
New Member
Avatar

Joined: 18 Nov 2016
Posts: 6
Post Options Post Options   Quote Sveinsson Kjaran Quote  Post ReplyReply Direct Link To This Post Posted: 18 Nov 2016 at 2:16pm
This is the project I made.
I'm using Berlin 10.1 version 24.0.24468.8770
and FixInsight version 2016.09
Back to Top
Sveinsson Kjaran View Drop Down
New Member
New Member
Avatar

Joined: 18 Nov 2016
Posts: 6
Post Options Post Options   Quote Sveinsson Kjaran Quote  Post ReplyReply Direct Link To This Post Posted: 18 Nov 2016 at 2:17pm
http://star-oddi.com/updates/projects.zip
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down