🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.language.objectpascal
Article #143

compiler warning "Return value of function 'xxx' might be undefined" wrong

#143
From: sas
Date: Thu, 04 Mar 2004 19:51
17 lines
1469 bytes
Got the following compiler message:

"[Warning] Unit1.pas(46): Return value of function 'TForm1.Test' might
be undefined"

on a very simple project compiled using delphi 7.

I've read some posts that say there is a limit to the number of local
variables you can define in a function, and after exceeding that limit
may
result in erroneous compiler warnings, like the one I am seeing.

Would like to get an "official" confirmation on this limitation in
delphi 7 compiler.

If anyone can point me at to a Borland bug report, tech note, etc., 
describing this, I would appreciate it.  Thanks.
Technical Details
Message-ID: <79f518f1.0403041151.7b1a93de@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d30,e75231c4c9199fdf,start
X-Google-Attributes: gid109d30,public
X-Google-ArrivalTime: 2004-03-04 11:51:34 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: sschendel@peoplenetonline.com (sas)
Newsgroups: borland.public.delphi.language.objectpascal
Subject: compiler warning "Return value of function 'xxx' might be undefined" wrong
Date: 4 Mar 2004 11:51:33 -0800
Organization: http://groups.google.com
Lines: 17
Message-ID: <79f518f1.0403041151.7b1a93de@posting.google.com>
NNTP-Posting-Host: 208.137.6.18
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1078429893 9872 127.0.0.1 (4 Mar 2004 19:51:33 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 4 Mar 2004 19:51:33 +0000 (UTC)