From 358ff82162885459d6bac0503c2f345f005b703a Mon Sep 17 00:00:00 2001 From: Francesco Saverio Giudice Date: Thu, 8 Jan 2009 19:56:37 +0000 Subject: [PATCH] 2009-01-08 20:55 UTC+0100 Francesco Saverio Giudice (info/at/fsgiudice.com) * harbour/contrib/xhb/cstruct.prg * fixed assigned but unused variable --- harbour/ChangeLog | 4 ++++ harbour/contrib/xhb/cstruct.prg | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 9d63d1b5ef..436fb551b2 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2008-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2009-01-08 20:55 UTC+0100 Francesco Saverio Giudice (info/at/fsgiudice.com) + * harbour/contrib/xhb/cstruct.prg + * fixed assigned but unused variable + 2009-01-08 13:12 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) * harbour/source/compiler/hbopt.c * improved 'variable assigned but unused' detection logic diff --git a/harbour/contrib/xhb/cstruct.prg b/harbour/contrib/xhb/cstruct.prg index c26d8da410..42870e21be 100644 --- a/harbour/contrib/xhb/cstruct.prg +++ b/harbour/contrib/xhb/cstruct.prg @@ -448,7 +448,7 @@ Function HB_CTypeArrayID( CType, nLen ) __clsAddMsg( hClass, "SizeOf" , Counter++, HB_OO_MSG_PROPERTY, HB_SizeOfCStructure( aCTypes, 1 ), HB_OO_CLSTP_READONLY ) __clsAddMsg( hClass, "_nID", Counter++, HB_OO_MSG_PROPERTY, nID ) // WARNING InternalBuffer *MUST* remain the *LAST* Property!!! - __clsAddMsg( hClass, "InternalBuffer", Counter++, HB_OO_MSG_PROPERTY, , HB_OO_CLSTP_READONLY ) + __clsAddMsg( hClass, "InternalBuffer", Counter, HB_OO_MSG_PROPERTY, , HB_OO_CLSTP_READONLY ) //TraceLog( "Registered: " + cArrayClassName, nID, Len( s_aArrayClasses ), HB_SizeOfCStructure( aCTypes, 1 ), nLen ) ELSE nID := s_aArrayClasses[nID][3]