2013-11-01 01:21 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)

* src/compiler/hbopt.c
    ! fixed -w3 warning 'Variable ... is assigned but not used', reapplied
      patch 2012-04-04 20:20 UTC+0300 Mindaugas Kavaliauskas
This commit is contained in:
Mindaugas Kavaliauskas
2013-11-01 01:22:54 +02:00
parent 7e3de3f14c
commit 5e31009f31
2 changed files with 19 additions and 2 deletions

View File

@@ -10,6 +10,11 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2013-11-01 01:21 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)
* src/compiler/hbopt.c
! fixed -w3 warning 'Variable ... is assigned but not used', reapplied
patch 2012-04-04 20:20 UTC+0300 Mindaugas Kavaliauskas
2013-10-31 13:04 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbfship/hbfship.hbx
! removed FIELDDECI() reenabled by mistake during one of

View File

@@ -965,8 +965,20 @@ static HB_BOOL hb_compIsUncondJump( HB_BYTE bPCode )
{
return bPCode == HB_P_JUMPNEAR ||
bPCode == HB_P_JUMP ||
bPCode == HB_P_JUMPFAR ||
bPCode == HB_P_SEQEND;
bPCode == HB_P_JUMPFAR;
/* || bPCode == HB_P_SEQEND;
BEGIN SEQUENCE/END SEQUENCE logic could not be processed using conditional/unconditional
jumps. I set HB_P_SEQEND as conditional jump though this PCode instruction is processed
as unconditional jump by Harbour VM. This hack solves 'Variable is assigned but not used'
warning false positive in code:
BEGIN SEQUENCE
nI := 1
Break( NIL )
RECOVER
? nI
END SEQUENCE
[Mindaugas]
*/
}
#if 0