Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Comiler Warnings

72 views
Skip to first unread message

Richard

unread,
May 2, 2008, 9:25:58 PM5/2/08
to
I posted in the Indy group but never got a response.

How is the best way to handle the following warnings?... Indy 9 and Delphi
2007

> [DCC Warning] IdGlobal.pas(184): W1010 Method 'WaitFor' hides virtual
> method of base type 'THandleObject'
> [DCC Warning] IdStack.pas(263): H2443 Inline function 'AnsiSameText' has
> not been expanded because unit 'Windows' is not specified in USES list
> [DCC Warning] IdHTTPHeaderInfo.pas(139): H2365 Override method
> TIdRequestHeaderInfo.destroy should match case of ancestor
> TIdEntityHeaderInfo.Destroy
> [DCC Warning] IdCustomHTTPServer.pas(592): H2443 Inline function
> 'AnsiCompareText' has not been expanded because unit 'Windows' is not
> specified in USES list
> [DCC Warning] IdCustomHTTPServer.pas(602): H2443 Inline function
> 'AnsiSameText' has not been expanded because unit 'Windows' is not
> specified in USES list
> [DCC Warning] IdCustomHTTPServer.pas(1200): H2443 Inline function
> 'AnsiSameText' has not been expanded because unit 'Windows' is not
> specified in USES list
> [DCC Warning] IdCustomHTTPServer.pas(1200): H2443 Inline function
> 'AnsiSameText' has not been expanded because unit 'Windows' is not
> specified in USES list


Rob Kennedy

unread,
May 2, 2008, 10:07:45 PM5/2/08
to
Richard wrote:
> I posted in the Indy group but never got a response.
>
> How is the best way to handle the following warnings?... Indy 9 and Delphi
> 2007

The best thing is probably to ignore them. They're not in your code, and
they're not in an actively developed version of Indy.

>> [DCC Warning] IdGlobal.pas(184): W1010 Method 'WaitFor' hides virtual
>> method of base type 'THandleObject'

Add "reintroduce" to the declaration.

>> [DCC Warning] IdStack.pas(263): H2443 Inline function 'AnsiSameText' has
>> not been expanded because unit 'Windows' is not specified in USES list

Add Windows to the uses clause.

>> [DCC Warning] IdHTTPHeaderInfo.pas(139): H2365 Override method
>> TIdRequestHeaderInfo.destroy should match case of ancestor
>> TIdEntityHeaderInfo.Destroy

Capitalize Destroy.

>> [DCC Warning] IdCustomHTTPServer.pas(592): H2443 Inline function
>> 'AnsiCompareText' has not been expanded because unit 'Windows' is not
>> specified in USES list
>> [DCC Warning] IdCustomHTTPServer.pas(602): H2443 Inline function
>> 'AnsiSameText' has not been expanded because unit 'Windows' is not
>> specified in USES list
>> [DCC Warning] IdCustomHTTPServer.pas(1200): H2443 Inline function
>> 'AnsiSameText' has not been expanded because unit 'Windows' is not
>> specified in USES list
>> [DCC Warning] IdCustomHTTPServer.pas(1200): H2443 Inline function
>> 'AnsiSameText' has not been expanded because unit 'Windows' is not
>> specified in USES list

Op. cit.

--
Rob

Peter Below (TeamB)

unread,
May 3, 2008, 4:24:41 AM5/3/08
to
Richard wrote:

> I posted in the Indy group but never got a response.
>
> How is the best way to handle the following warnings?... Indy 9 and
> Delphi 2007

Remove the path to the Indy source files from your library path or
project search path. You have no need to recompile these source files,
just make sure the path to the prebuild DCUs is part of the library
path.

--
Peter Below (TeamB)
Don't be a vampire (http://slash7.com/pages/vampires),
use the newsgroup archives :
http://www.tamaracka.com/search.htm
http://groups.google.com

0 new messages