Solved

Delphi6 and compiler warnings

Posted on 2001-08-27
8
612 Views
Last Modified: 2012-05-04
Is it some way to get rid of all
copiler warnings due to the platform specific thing?

( I mean like:

[Warning] test.dpr(524): Symbol 'INDEX' is specific to a platform)

0
Comment
Question by:hulken
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 20

Expert Comment

by:Madshi
ID: 6428181
{$ifdef ver140}
  {$WARN SYMBOL_DEPRECATED OFF}
  {$WARN SYMBOL_PLATFORM OFF}
{$endif}

Regards, Madshi.
0
 

Author Comment

by:hulken
ID: 6428212
what does {$WARN SYMBOL_DEPRECATED OFF}  turn off?
 
0
 
LVL 20

Expert Comment

by:Madshi
ID: 6428634
Hmmm... There are 2 different kind of new warnings in D6. Those are the 2 kinds. Please look in the help file for documentation about the warnings. I'm not sure, what "deprecated" means...   :-)

Regards, Madshi.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 11

Expert Comment

by:robert_marquardt
ID: 6428657
Aha, a kind way of saying RTFM :-)
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 6430406
This is what we have in a WARNINGS.INC file we include at the top of units which display these sorts of warnings:

{$IFNDEF SUPPRESS_WARNINGS_INC}

{$WARN SYMBOL_PLATFORM OFF}
{$WARN SYMBOL_DEPRECATED OFF}
{$WARN SYMBOL_LIBRARY ON}
{$WARN UNIT_DEPRECATED ON}
{$WARN UNIT_LIBRARY ON}
{$WARN UNIT_PLATFORM OFF}

{$ENDIF}

BTW: Borland uses 'deprecated' to mean that the unit, library. or symbol is obsolete and may disappear in a future version of delphi (ie: this is a warning, use the 'new' ways of doing these things).

Cheers,

Raymond.
0
 
LVL 20

Accepted Solution

by:
Madshi earned 50 total points
ID: 6430911
Hi Robert  :-)  what does RTFM mean?
0
 

Author Comment

by:hulken
ID: 6431075
Madshi. it means Read the fuckin manual . (or if you like to be nice, read the fine manual) :-))
0
 
LVL 20

Expert Comment

by:Madshi
ID: 6431144
(-:
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question