Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Question about compiling for Delphi 7 (warnings and hints)
Thu, Mar 20 2008 2:41 AMPermanent Link

David
I just ported my app from D5 to D7.  I know, I need to go to 2007.

Compiling under D7 is considerably slower than D5.  I am getting a ton of
hints and warnings.  Is there any way to turn off the hits and warnings for
all of the components source and only display the hints and warnings for my
source?
Thu, Mar 20 2008 9:59 AMPermanent Link

Dan Rootham
David,

<< Compiling under D7 is considerably slower than D5.  I am getting a ton of
hints and warnings.  Is there any way to turn off the hints and warnings [for
components only]? >>

As far as I know, you can only control hints and warnings globally. To reduce the
"noise" of all those hints and warnings, you might find it worthwhile turning off some
of these warning types in Project> Options>Compiler Messages:
- Deprecated Symbol
- Library Symbol
- Platform Symbol
- Library Unit
- Platform Unit
- Unsafe Type
- Unsafe Code
- Unsafe Typecast

I think that the "Platform" messages were introduced to warn about aspects which
are not available under Linux. And the "Unsafe" messages mainly relate to .NET.
So if those warnings aren't important to you, turn off these message types.

Regards,
Dan
Thu, Mar 20 2008 12:02 PMPermanent Link

David
Thank you.

The hints stayed the same at 18, but the warnings were reduced from 2581 to
23.  Build all time dropped from well over a minute to a few seconds.

On 3/20/08 10:59 AM, in article
6AE6BB41-AC13-434E-B08A-F7FBB2CAF77D@news.elevatesoft.com, "Dan Rootham"
<roothamd@yahoo.co.uk> wrote:

> David,
>
> << Compiling under D7 is considerably slower than D5.  I am getting a ton of
> hints and warnings.  Is there any way to turn off the hints and warnings [for
> components only]? >>
>
> As far as I know, you can only control hints and warnings globally. To reduce
> the
> "noise" of all those hints and warnings, you might find it worthwhile turning
> off some
> of these warning types in Project> Options>Compiler Messages:
> - Deprecated Symbol
> - Library Symbol
> - Platform Symbol
> - Library Unit
> - Platform Unit
> - Unsafe Type
> - Unsafe Code
> - Unsafe Typecast
>
> I think that the "Platform" messages were introduced to warn about aspects
> which
> are not available under Linux. And the "Unsafe" messages mainly relate to
> .NET.
> So if those warnings aren't important to you, turn off these message types.
>
> Regards,
> Dan
>

Fri, Mar 21 2008 10:35 AMPermanent Link

Dan Rootham
David,

<< The hints stayed the same at 18, but the warnings were reduced from 2581 to
23.  Build all time dropped from well over a minute to a few seconds. >>

Glad that the build time dropped so significantly!

And another "win" which I have found is this: once you remove all the "known"
warnings, you can easily spot any new warnings which a code change has just
introduced.

Regards,
Dan
Image