From 3f74acd4f33a0e6d4b6f2af6c1687f38935a11a4 Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Wed, 12 Sep 2012 14:35:37 +0000 Subject: [PATCH] 2012-09-12 07:33 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/gtwvg/crt.prg % Cleanup. * contrib/gtwvg/gtwvg.c * contrib/gtwvg/gtwvg.h ! Pacified warnings. --- harbour/ChangeLog | 8 ++++++++ harbour/contrib/gtwvg/crt.prg | 2 -- harbour/contrib/gtwvg/gtwvg.c | 4 ++-- harbour/contrib/gtwvg/gtwvg.h | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 548b417157..02071ae6d8 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,14 @@ The license applies to all entries newer than 2009-04-28. */ +2012-09-12 07:33 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + * contrib/gtwvg/crt.prg + % Cleanup. + + * contrib/gtwvg/gtwvg.c + * contrib/gtwvg/gtwvg.h + ! Pacified warnings. + 2012-09-12 13:02 UTC+0200 Viktor Szakats (harbour syenar.net) * contrib/hbexpat/3rd/expat/expat.dif * contrib/hbexpat/3rd/expat/expat.h diff --git a/harbour/contrib/gtwvg/crt.prg b/harbour/contrib/gtwvg/crt.prg index bb58ce54aa..8e83a8fe9c 100644 --- a/harbour/contrib/gtwvg/crt.prg +++ b/harbour/contrib/gtwvg/crt.prg @@ -359,8 +359,6 @@ METHOD WvgCrt:create( oParent, oOwner, aPos, aSize, aPresParams, lVisible ) ::lHasInputFocus := .t. ENDIF -// HB_GtInfo( HB_GTI_NOTIFIERBLOCKGUI, {|nEvent, ...| ::notifier( nEvent, ... ) } ) - RETURN Self /*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/gtwvg/gtwvg.c b/harbour/contrib/gtwvg/gtwvg.c index 7821492db1..206b86f35c 100644 --- a/harbour/contrib/gtwvg/gtwvg.c +++ b/harbour/contrib/gtwvg/gtwvg.c @@ -2821,7 +2821,7 @@ static void hb_gt_wvt_Exit( PHB_GT pGT ) PHB_ITEM pEvParams = hb_itemNew( NULL ); hb_arrayNew( pEvParams, 2 ); hb_arraySetNInt( pEvParams, 1, ( HB_MAXINT ) ( HB_PTRDIFF ) pWVT->hWnd ); - hb_arraySetNI( pEvParams, 2, pWVT->threadNO ); + hb_arraySetNI( pEvParams, 2, ( int ) pWVT->threadNO ); hb_gt_wvt_FireEvent( pWVT, HB_GTE_CLOSED, pEvParams ); } @@ -4214,7 +4214,7 @@ static void hb_gt_wvt_Refresh( PHB_GT pGT ) PHB_ITEM pEvParams = hb_itemNew( NULL ); hb_arrayNew( pEvParams, 2 ); hb_arraySetNInt( pEvParams, 1, ( HB_MAXINT ) ( HB_PTRDIFF ) pWVT->hWnd ); - hb_arraySetNI( pEvParams, 2, pWVT->threadNO ); + hb_arraySetNI( pEvParams, 2, ( int ) pWVT->threadNO ); hb_gt_wvt_FireEvent( pWVT, HB_GTE_CREATED, pEvParams ); } } diff --git a/harbour/contrib/gtwvg/gtwvg.h b/harbour/contrib/gtwvg/gtwvg.h index d119d36a99..cdde32a71b 100644 --- a/harbour/contrib/gtwvg/gtwvg.h +++ b/harbour/contrib/gtwvg/gtwvg.h @@ -468,7 +468,7 @@ typedef struct PHB_ITEM pNotifierGUI; /* Notifier to Wvg*Parts if embedded into a GT Window */ - int threadNO; /* Will hold the current THREAD No */ + HB_THREAD_NO threadNO; /* Will hold the current THREAD No */ } HB_GTWVT, * PHB_GTWVT;