#1 2022-02-04 20:53:18

tbo
Member
Registered: 2015-04-20
Posts: 345

Commit 4d402b1

Delphi 10.4.2, mORMot2 commit 4d402b1
Unit mormot.core.threads.pas, line 2680

[dcc32 Hinweis] mormot.core.threads.pas(2680): H2077 Auf 'found' zugewiesener Wert wird niemals benutzt
Translation: Value assigned to "found" is never used

With best regards
Thomas

Offline

#2 2022-02-05 10:37:31

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,527
Website

Re: Commit 4d402b1

On Windows, this part should not be compiled by Delphi because USE_WINIOCP is defined.

So I am not able to reproduce.

Offline

#3 2022-02-06 12:35:08

tbo
Member
Registered: 2015-04-20
Posts: 345

Re: Commit 4d402b1

ab wrote:

On Windows, this part should not be compiled by Delphi because USE_WINIOCP is defined.

USE_WINIOCP is not defined if ONLYUSEHTTPSOCKET is defined. Therefore, this part can also be compiled under Windows.

When I look at the source code the initialization with found := nil should not be necessary.

With best regards
Thomas

Offline

#4 2022-02-06 13:51:56

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,527
Website

Re: Commit 4d402b1

It is necessary on Delphi 2007 - 2010 at least.
Buggy compiler.

Offline

Board footer

Powered by FluxBB