diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 883b528800..bc5d6bfa09 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,14 @@ 2002-12-01 13:30 UTC+0100 Foo Bar */ +2007-04-05 13:31 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) + * harbour/include/hbclass.ch + * harbour/include/common.ch + ! Using locally declared __HB_SYMBOL_UNUSED() instead of HB_SYMBOL_UNUSED() + + * harbour/contrib/hgf/os2pm/tform.prg + ! Fixed unused symbol. + 2007-04-04 15:30 UTC+0200 Lorenzo Fiorini (lorenzo.fiorini/at/gmail.com) * harbour/contrib/pgsql/tpostgre.prg * removed unused vars diff --git a/harbour/contrib/hgf/os2pm/tform.prg b/harbour/contrib/hgf/os2pm/tform.prg index a30f41d982..cada98a762 100644 --- a/harbour/contrib/hgf/os2pm/tform.prg +++ b/harbour/contrib/hgf/os2pm/tform.prg @@ -122,6 +122,8 @@ METHOD Command( nNotifyCode, nId, hWndCtl ) CLASS HBForm local oMenuItem, nAt, oControl + HB_SYMBOL_UNUSED( hWndCtl ) + do case case nNotifyCode == CMDSRC_MENU // Menu command if ::Menu != nil @@ -159,6 +161,8 @@ return nil METHOD LButtonDown( nKeyFlags, nXPos, nYPos ) CLASS HBForm + HB_SYMBOL_UNUSED( nKeyFlags ) + if ::OnClick != nil return __ObjSendMsg( Self, ::OnClick, Self, nXPos, nYPos ) endif diff --git a/harbour/include/common.ch b/harbour/include/common.ch index c8977901c6..05f09414d4 100644 --- a/harbour/include/common.ch +++ b/harbour/include/common.ch @@ -81,6 +81,7 @@ /* To suppress unused variable -w2 warnings. The code snippet will be optimized out by the compiler, so it won't cause any overhead. It can be used in codeblocks, too. */ +/* Please keep it synced with the similar #define in hbclass.ch */ #define HB_SYMBOL_UNUSED( symbol ) ( symbol := ( symbol ) ) #endif /* HB_COMMON_CH_ */ diff --git a/harbour/include/hbclass.ch b/harbour/include/hbclass.ch index 3053ff3c70..bb22f80e99 100644 --- a/harbour/include/hbclass.ch +++ b/harbour/include/hbclass.ch @@ -134,6 +134,9 @@ #endif #endif +/* Please keep it synced with the similar #define in common.ch */ +#define __HB_SYMBOL_UNUSED( symbol ) ( symbol := ( symbol ) ) + /* * I have to enable this definition by default untill we will not fix * preprocessor. [druzus] @@ -321,7 +324,7 @@ DECLARE HBClass ; /* Operator overloading */ #xcommand OPERATOR [ ] [LOCAL ] INLINE [ ] [] [