🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.deployment
Article #118

Re: Why am I getting these warnings?

#118
From: Mark Jacobs
Date: Thu, 20 Apr 2006 09:01
27 lines
2265 bytes
"Ralph Gamble" <ralphgamble@rogers.com> wrote in message 
news:443a9344$1@newsgroups.borland.com...
>I am having a terrible time trying to Deploy a large project.
>
> The project is running with no warnings and no errors reported.
> I modified Options to compile with no run time libs and recompiled. No 
> warings or errors were reported.
>
> I then changed the compiler options from "FullDebug" to "Realease".
> now when I rebuild the project I get hundreds of warnings
> "  'SomeVariable'  is assigned a value that is never used ".
> Upon inspection the variables are all used iether as an Index or function 
> parameter .
> Does anyone have any idea of whats going on here?

You can turn warnings off under the compiler section of Project Options. 
Whenever you have a routine with a TObject *Sender parameter in its 
declaration, like most VCL event handlers do, and you never refer to Sender in 
the routine, you'll get a warning about an unused parameter. The same goes for 
locally-declared variables which you forget to use. They are nothing to worry 
about (although you could tidy up the locally-declared variables bit). Unused 
parameters to event handlers are a common occurrence.
-- 

Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk
Technical Details
Message-ID: <44474d82@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <443a9344$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f8e54,6dbfef9f2ac9383e
X-Google-Attributes: gidf8e54,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mark Jacobs" <http://www.jacobsm.com/mjmsg?Borland%20Newsgroup>
Newsgroups: borland.public.cppbuilder.deployment
References: <443a9344$1@newsgroups.borland.com>
Subject: Re: Why am I getting these warnings?
Date: Thu, 20 Apr 2006 10:01:27 +0100
Lines: 29
Organization: DK Computing
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 81.144.157.8
Message-ID: <44474d82@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1145523586 81.144.157.8 (20 Apr 2006 01:59:46 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail