[Harbour] Suspicious pointer conversion in function...

2009-11-25 Thread Ale SB
I know WARNNING is not a mistake, but it bothers me a lot, after I migrated to 2.0-beta3 Harbor began to appear in this FastReport: Warning W8075 G:\\FiveWin\\Fast_4.8.24\\FastRepH.prg 80: Suspicious pointer conversion in function HB_FUN_CALL_PROC_C Warning W8075

Re: [Harbour] Suspicious pointer conversion in function...

2009-11-25 Thread Mindaugas Kavaliauskas
Hi, Ale SB wrote: Warning W8075 G:\\FiveWin\\Fast_4.8.24\\FastRepH.prg 80: Suspicious pointer conversion in function HB_FUN_CALL_PROC_C . function is: HB_FUNC( CALL_PROC_C ) { proc_C CurProc = (proc_C)hb_parnl(1); CurProc(hb_parc(2)); How to solve? Use pointer type for pointers

Re: [Harbour] Suspicious pointer conversion in function...

2009-11-25 Thread Ale SB
Hi, The original function is thus: typedef void (*proc_C)(char * param); HB_FUNC( CALL_PROC_C ) { proc_C CurProc = (proc_C)hb_parnl(1); CurProc(hb_parc(2)); } If I do this, just the WARNNING, but it's alright I do this, or I may have future problems with the function? HB_FUNC(

Re: [Harbour] Suspicious pointer conversion in function...

2009-11-25 Thread Mindaugas Kavaliauskas
Hi, Ale SB wrote: If I do this, just the WARNNING, but it's alright I do this, or I may have future problems with the function? Yes, you'll have on Win64. Regards, Mindaugas ___ Harbour mailing list (attachment size limit: 40KB)

[Harbour] Suspicious pointer conversion in function

2009-08-06 Thread toni...@fwi
Hi, I´m trying to compile my app with latest SVN and I have a lot of Suspicious pointer conversion in function like this: ---cut--- HB_FUNC( XTL_DISPLAY ) { PHB_ITEM pText = hb_param( 2, HB_IT_STRING ); if( pText ) { char * pszBuffer = hb_itemGetCPtr( pText ); int iLen =