GNU Pascal and warnings.
Lennart Thelander
Lennart.Thelander at atex.com
Wed Feb 18 16:12:37 CET 2009
Hello.
For quite many functions/Procedures, I get two warnings:
warning: frame size too large for reliable stack checking
warning: try reducing the number of local variables
Say what? Reducing the number of local variables? Here's an example:
PROCEDURE TTextEditItem.HandleKey(VAR theEvent:EventRecord);
VAR
i : SInt16;
pt : Point;
theChr : Char;
theKey : SInt16;
shift : BOOLEAN;
option : BOOLEAN;
control : BOOLEAN;
command : BOOLEAN;
lineHeight,
ascent : SInt16;
theStyle : TextStyle;
I say that's a small amount of (small) local variables, so how can there be
too many?
And what is a "frame" and how can I reduce its size? Or better: How do I
allow for a larger frame size?
This is GNU Pascal 3.4.6u2 on Mac OS X and Xcode 2.5.
Regards
Lennart Thelander
System Developer
Lennart.Thelander at atex.com
Phone +46 (0) 42 25 39 05
Fax +46 (0) 42 25 39 29
Atex Media AB
Garnisonsgatan 10C
S-254 66 Helsingborg
SWEDEN
Bringing new life to your media business
www.atex.com
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.g-n-u.de/pipermail/gpc/attachments/20090218/e6fd8784/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1506 bytes
Desc: not available
URL: <http://www.g-n-u.de/pipermail/gpc/attachments/20090218/e6fd8784/attachment.jpeg>
More information about the Gpc
mailing list