diff --git a/include/hbwinuni.h b/include/hbwinuni.h index da79a87fa1..2854c6784d 100644 --- a/include/hbwinuni.h +++ b/include/hbwinuni.h @@ -87,11 +87,11 @@ #define HB_WINAPI_SYSTEM( cmd ) _wsystem( cmd ) #define HB_WINAPI_KERNEL32_DLL() ( hb_iswin9x() ? TEXT( "unicows.dll" ) : TEXT( "kernel32.dll" ) ) #if defined( HB_OS_WIN_CE ) - #define HB_WINAPI_GETPROCADDRESS( h, n ) GetProcAddress( h, TEXT( n ) ) - #define HB_WINAPI_GETPROCADDRESST( h, n ) GetProcAddress( h, TEXT( n ) TEXT( "W" ) ) + #define HB_WINAPI_GETPROCADDRESS( h, n ) ( void * ) GetProcAddress( h, TEXT( n ) ) + #define HB_WINAPI_GETPROCADDRESST( h, n ) ( void * ) GetProcAddress( h, TEXT( n ) TEXT( "W" ) ) #else - #define HB_WINAPI_GETPROCADDRESS( h, n ) GetProcAddress( h, n ) - #define HB_WINAPI_GETPROCADDRESST( h, n ) GetProcAddress( h, n "W" ) + #define HB_WINAPI_GETPROCADDRESS( h, n ) ( void * ) GetProcAddress( h, n ) + #define HB_WINAPI_GETPROCADDRESST( h, n ) ( void * ) GetProcAddress( h, n "W" ) #endif #else #define HB_PARSTR( n, h, len ) hb_parstr( n, hb_setGetOSCP(), h, len ) @@ -126,8 +126,8 @@ #define HB_OSSTRDUP2( str, buf, len ) hb_osStrDecode2( str, buf, len ) #define HB_WINAPI_SYSTEM( cmd ) system( cmd ) #define HB_WINAPI_KERNEL32_DLL() ( TEXT( "kernel32.dll" ) ) - #define HB_WINAPI_GETPROCADDRESS( h, n ) GetProcAddress( h, n ) - #define HB_WINAPI_GETPROCADDRESST( h, n ) GetProcAddress( h, n "A" ) + #define HB_WINAPI_GETPROCADDRESS( h, n ) ( void * ) GetProcAddress( h, n ) + #define HB_WINAPI_GETPROCADDRESST( h, n ) ( void * ) GetProcAddress( h, n "A" ) #endif #endif /* HB_OS_WIN */ diff --git a/src/compiler/harbour.yyc b/src/compiler/harbour.yyc index 2a9b8cf884..8d1c60ca06 100644 --- a/src/compiler/harbour.yyc +++ b/src/compiler/harbour.yyc @@ -3574,7 +3574,10 @@ YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); yystate = 0; yyerrstatus = 0; + yynerrs = 0; + HB_SYMBOL_UNUSED( yynerrs ); + yychar = YYEMPTY; /* Cause a token to be read. */ goto yysetstate; diff --git a/src/macro/macro.yyc b/src/macro/macro.yyc index bccf54a71b..fbb82c184a 100644 --- a/src/macro/macro.yyc +++ b/src/macro/macro.yyc @@ -1668,7 +1668,10 @@ YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); yystate = 0; yyerrstatus = 0; + yynerrs = 0; + HB_SYMBOL_UNUSED( yynerrs ); + yychar = YYEMPTY; /* Cause a token to be read. */ goto yysetstate; diff --git a/src/rtl/replic.c b/src/rtl/replic.c index 1d44a5f849..69071b5a77 100644 --- a/src/rtl/replic.c +++ b/src/rtl/replic.c @@ -63,7 +63,7 @@ HB_FUNC( REPLICATE ) { if( nTimes == 1 ) hb_itemReturn( pItem ); - else if( ( double ) nLen * nTimes < HB_SIZE_MAX ) + else if( ( double ) nLen * nTimes < ( double ) HB_SIZE_MAX ) { const char * szText = hb_itemGetCPtr( pItem ); HB_SIZE nSize = nLen * nTimes; diff --git a/src/vm/classes.c b/src/vm/classes.c index 6247c6a9e8..0641436375 100644 --- a/src/vm/classes.c +++ b/src/vm/classes.c @@ -508,7 +508,7 @@ static void hb_clsDictInit( PCLASS pClass, HB_SYMCNT uiHashKey ) { HB_SIZE nSize; - HB_TRACE( HB_TR_DEBUG, ( "hb_clsDictInit(%p,%hu)", ( void * ) pClass, uiHashKey ) ); + HB_TRACE( HB_TR_DEBUG, ( "hb_clsDictInit(%p,%u)", ( void * ) pClass, uiHashKey ) ); pClass->uiHashKey = uiHashKey; #ifdef HB_MSG_POOL diff --git a/src/vm/maindllp/dllpcode.c b/src/vm/maindllp/dllpcode.c index 8e14ad3206..37cc1149d0 100644 --- a/src/vm/maindllp/dllpcode.c +++ b/src/vm/maindllp/dllpcode.c @@ -136,10 +136,10 @@ PHB_FUNC hb_dllGetProcAddress( const char * szProcName ) { #if defined( HB_OS_WIN_CE ) LPCTSTR s_lpGetProcAddr = TEXT( "_dll_hb_vmProcAddress" ); - s_pProcGet = ( HB_PROC_GET ) GetProcAddress( s_hModule, s_lpGetProcAddr + i ); + s_pProcGet = ( HB_PROC_GET ) ( void * ) GetProcAddress( s_hModule, s_lpGetProcAddr + i ); #else static const char * s_szGetProcAddr = "_dll_hb_vmProcAddress"; - s_pProcGet = ( HB_PROC_GET ) GetProcAddress( s_hModule, s_szGetProcAddr + i ); + s_pProcGet = ( HB_PROC_GET ) ( void * ) GetProcAddress( s_hModule, s_szGetProcAddr + i ); #endif } while( s_pProcGet == NULL && ( i -= i == 4 ? 3 : 1 ) >= 0 );