🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.upgrade
Article #422

Compiler warnings on project upgrade

#422
From: Gene Melton
Date: Wed, 24 Jan 2007 16:03
39 lines
2568 bytes
I have a project that was written using BCB3. It has over 40,000 lines 
of program code (2.8M compiled) and it uses serial communication which 
is enabled by an add-on program, ASYNC Pro.  ASYNC Pro is no longer 
available but it has the ability to detect BCB3 and BCB5 in order to 
install menu items.  I have had BCB5 for some time but never installed 
it because I feared the very issues that have arisen.  Bought a new 
faster computer so decided to install BCB5 on it.  However, even if I 
can figure out this problem, it appears that I am limited to BCB5 
because of the ASYNC Pro installation program.  From reading the 
messages in this news group, I think I could expect similar (if not 
more) problems with BCB6 or BCB2006 if I could figure out how to install 
ASYNC Pro in the later versions.  I have BCB6 but am now really afraid 
to install it.

Now to the problem.  The project compiles in BCB5 if I turn the warnings 
off.  Activating the warnings produces warnings until the number of them 
(175) generates an error, then the compiler stops. Below is a sample of 
the code which generates the typical error.

//--------------------------rb1Click-----------------------------------------
void __fastcall TfExplorer::rb1Click(TObject *Sender) {
	SleepRate=500;	         // Slow
   Timer8->Interval=2000;
}

The error message associated with the above routine:

-[C++Warning]Demo5x.cpp(437): W8057 Parameter 'Sender' is never used
  -Full parser context
   Demo5x.cpp(440): parsing: void_fastcall TfExplorer::rb1Click(TObject *)


If I install a new button the code looks identical in the program and 
header to that above. So why the error message and is there anything I 
can do to correct it?

Thank you in advance,

Gene
Technical Details
Message-ID: <45b7836d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10529a,a9c002506a2b41b6,start
X-Google-Attributes: gid10529a,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 24 Jan 2007 11:03:08 -0500
From: Gene Melton <gmelton@hs-eng.com>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.upgrade
Subject: Compiler warnings on project upgrade
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 68.17.204.153
Message-ID: <45b7836d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1169654637 68.17.204.153 (24 Jan 2007 08:03:57 -0800)
Lines: 39
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail