{$pop} doesn't restore the state of {$warnings on/off}
Original Reporter info from Mantis: Adriaan van Os
-
Reporter name: Adriaan van Os
Original Reporter info from Mantis: Adriaan van Os
- Reporter name: Adriaan van Os
Description:
{pop} doesn't restore the state of {
warnings on/off}
{$mode macpas}
program popwarnings;
var
p: Pointer;
offs: PtrInt;
a: array[ 1..100] of integer;
begin
{$warnings on}
p:= @a;
offs:= SizeOf(integer);
{$push}
{$warnings off}
PtrUInt(p):=PtrUInt(p) + offs;
{$pop}
PtrUInt(p):=PtrUInt(p) + offs;
{$warnings on}
PtrUInt(p):=PtrUInt(p) + offs;
end.
Additional information:
svn trunk revision 11708
Mantis conversion info:
- Mantis ID: 12075
- Version: 2.3.1
- Fixed in version: 2.4.0
- Fixed in revision: 12025 (#e5920bc2)
- Target version: 2.4.0