diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 90a178e6ef..34e7a77fdd 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,14 @@ 2008-12-31 13:59 UTC+0100 Foo Bar */ +2008-06-21 18:25 UTC+0200 Viktor Szakats (harbour.01 syenar hu) + * contrib/hbwhat32/_winsock.c + * contrib/hbwhat32/_winmous.c + ! Silenced GCC 4.30 warnings. + NOTE: These warnings are pointing to important potential + bugs (GPFs) in these functions. It would be better + to fix them properly. + 2008-06-21 18:06 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * contrib/hbole/Makefile + Marked as w32 only. diff --git a/harbour/contrib/hbwhat32/_winmous.c b/harbour/contrib/hbwhat32/_winmous.c index b74886c8ad..0e8ff5a9cc 100644 --- a/harbour/contrib/hbwhat32/_winmous.c +++ b/harbour/contrib/hbwhat32/_winmous.c @@ -169,15 +169,10 @@ HB_FUNC( CLIPCURSOR ) HB_FUNC( GETCLIPCURSOR ) { - RECT rc ; - PHB_ITEM aRect; + RECT rc; if ( GetClipCursor( &rc ) ) - - aRect = Rect2Array(&rc) ; - _itemReturn(aRect); - _itemRelease(aRect); - + hb_itemReturnRelease( Rect2Array( &rc ) ); } diff --git a/harbour/contrib/hbwhat32/_winsock.c b/harbour/contrib/hbwhat32/_winsock.c index 896821df21..5eb14b7514 100644 --- a/harbour/contrib/hbwhat32/_winsock.c +++ b/harbour/contrib/hbwhat32/_winsock.c @@ -274,10 +274,10 @@ HB_FUNC( RECVFROM ) HB_FUNC( SOCKSELECT ) { - fd_set *readfds ; - fd_set *writefds ; - fd_set *exceptfds ; - struct timeval *timeout ; + fd_set *readfds = NULL; + fd_set *writefds = NULL; + fd_set *exceptfds = NULL; + struct timeval *timeout = NULL; if ( ISCHAR( 2 ) ) readfds = (fd_set *) hb_parc( 2 ); //hb_param( 2, HB_IT_STRING )->item.asString.value ; @@ -327,7 +327,7 @@ HB_FUNC( SENDTO ) { int iBuffLen = (ISNIL(3) ? ( ISNIL(2) ? 0 : hb_parclen(2) ) : hb_parni(3)); - struct sockaddr *to ; + struct sockaddr *to = NULL; int iToLen = 0 ; if ( ISCHAR( 5 ) )