|
From: Itamar M. L. J. L. <ita...@gm...> - 2020-05-09 16:09:57
|
Hi!
hbmk2: Compilando...
source\winapi\hmonthc.prg: In function 'HB_FUN_HWG_INITMONTHCALENDAR':
source\winapi\hmonthc.prg:142:26: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
In file included from
C:/msys32/mingw64/x86_64-w64-mingw32/include/windows.h:72,
from source\winapi\htrackbr.prg:154:
source\winapi\htrackbr.prg: In function 'HB_FUN_HWG_INITTRACKBAR':
source\winapi\htrackbr.prg:171:30: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
In file included from ../../../../source/winapi/animat.c:12:
../../../../source/winapi/animat.c: In function 'HB_FUN_HWG_ANIMATE_OPENEX':
../../../../source/winapi/animat.c:70:20: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
70 | ( HINSTANCE ) hb_parnl( 2 ),
| ^
In file included from
C:/msys32/mingw64/x86_64-w64-mingw32/include/windows.h:72,
from ../../../../include/hwingui.h:17,
from ../../../../source/winapi/control.c:14:
../../../../source/winapi/control.c: In function 'HB_FUN_HWG_CREATEPANEL':
../../../../source/winapi/control.c:189:10: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
189 | ( HMENU ) hb_parni( 2 ), /* control ID */
| ^
../../../../source/winapi/control.c: In function 'HB_FUN_HWG_CREATEOWNBTN':
../../../../source/winapi/control.c:208:10: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
208 | ( HMENU ) hb_parni( 2 ), /* control ID */
| ^
../../../../source/winapi/control.c: In function 'HB_FUN_HWG_CREATESTATIC':
../../../../source/winapi/control.c:230:10: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
230 | ( HMENU ) hb_parni( 2 ), /* control ID */
| ^
In file included from
C:/msys32/mingw64/x86_64-w64-mingw32/include/windows.h:72,
from ../../../../include/hwingui.h:17,
from ../../../../source/winapi/control.c:14:
../../../../source/winapi/control.c: In function 'HB_FUN_HWG_CREATEBUTTON':
../../../../source/winapi/control.c:264:10: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
264 | ( HMENU ) hb_parni( 2 ), /* button ID */
| ^
../../../../source/winapi/control.c: In function 'HB_FUN_HWG_CREATEEDIT':
../../../../source/winapi/control.c:292:10: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
292 | ( HMENU ) hb_parni( 2 ), GetModuleHandle( NULL ), NULL );
| ^
In file included from
C:/msys32/mingw64/x86_64-w64-mingw32/include/windows.h:72,
from ../../../../include/hwingui.h:17,
from ../../../../source/winapi/control.c:14:
../../../../source/winapi/control.c: In function 'HB_FUN_HWG_CREATECOMBO':
../../../../source/winapi/control.c:319:10: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
319 | ( HMENU ) hb_parni( 2 ), /* combobox ID */
| ^
../../../../source/winapi/control.c: In function 'HB_FUN_HWG_CREATEBROWSE':
../../../../source/winapi/control.c:345:10: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
345 | ( HMENU ) hb_parni( 2 ), /* control ID */
| ^
../../../../source/winapi/control.c: In function
'HB_FUN_HWG_CREATESTATUSWINDOW':
../../../../source/winapi/control.c:377:10: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
377 | ( HMENU ) hb_parni( 2 ), // child window identifier
| ^
../../../../source/winapi/control.c: In function
'HB_FUN_HWG_CREATEDATEPICKER':
../../../../source/winapi/control.c:559:10: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
559 | ( HMENU ) hb_parni( 2 ), /* control ID */
| ^
In file included from
C:/msys32/mingw64/x86_64-w64-mingw32/include/windows.h:72,
from ../../../../include/hwingui.h:17,
from ../../../../source/winapi/control.c:14:
../../../../source/winapi/control.c: In function
'HB_FUN_HWG_CREATETABCONTROL':
../../../../source/winapi/control.c:670:10: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
670 | ( HMENU ) hb_parni( 2 ), /* control ID */
| ^
../../../../source/winapi/control.c: In function 'HB_FUN_HWG_CREATETREE':
../../../../source/winapi/control.c:800:10: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
800 | ( HMENU ) hb_parni( 2 ), /* control ID */
| ^
../../../../source/winapi/control.c: In function 'HB_FUN_HWG_TREEADDNODE':
../../../../source/winapi/control.c:856:24: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
856 | DeleteObject( ( HGDIOBJ ) tvi.iImage );
| ^
../../../../source/winapi/control.c:859:24: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
859 | DeleteObject( ( HGDIOBJ ) tvi.iSelectedImage );
| ^
../../../../source/winapi/control.c: In function 'HB_FUN_HWG_TREEGETNOTIFY':
../../../../source/winapi/control.c:971:17: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
971 | hb_retnl( ( LONG ) ( ( ( NM_TREEVIEW * ) HB_PARHANDLE( 1 )
)->itemNew.
| ^
../../../../source/winapi/control.c: In function 'HB_FUN_HWG_SETTIMER':
../../../../source/winapi/control.c:1123:45: warning: pointer type mismatch
in conditional expression
1123 | hb_pcount() == 3 ? s_timerProc : ( TIMERPROC ) NULL );
| ^
../../../../source/winapi/control.c: In function 's_timerProc':
../../../../source/winapi/control.c:1257:80: warning: unused parameter
'dwTime' [-Wunused-parameter]
1257 | static void CALLBACK s_timerProc( HWND hWnd, UINT message, UINT
idTimer, DWORD dwTime )
|
~~~~~~^~~~~~
../../../../source/winapi/control.c: In function 'HB_FUN_HWG_CREATETOOLBAR':
../../../../source/winapi/control.c:1762:10: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
1762 | ( HMENU ) hb_parni( 2 ), /* control ID */
| ^
../../../../source/winapi/control.c: In function
'HB_FUN_HWG_TOOLBARADDBUTTONS':
../../../../source/winapi/control.c:1806:47: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
1806 | hb_arrayGetCLen( pTemp, 6 ) > 0 ? ( int )
hb_arrayGetCPtr( pTemp,
| ^
In file included from
C:/msys32/mingw64/x86_64-w64-mingw32/include/windows.h:72,
from ../../../../include/hwingui.h:17,
from ../../../../source/winapi/control.c:14:
../../../../source/winapi/control.c: In function 'HB_FUN_HWG_CREATEPAGER':
../../../../source/winapi/control.c:2000:10: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
2000 | ( HMENU ) hb_parni( 2 ), /* control ID */
| ^
../../../../source/winapi/control.c: In function 'HB_FUN_HWG_CREATEREBAR':
../../../../source/winapi/control.c:2020:10: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
2020 | ( HMENU ) hb_parni( 2 ), /* control ID */
| ^
../../../../source/winapi/control.c: In function
'HB_FUN_HWG_COMBOGETITEMRECT':
../../../../source/winapi/control.c:2139:47: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
2139 | SendMessage( hWnd, LB_GETITEMRECT, nIndex, ( LONG ) ( VOID * ) &
rcItem );
| ^
../../../../source/winapi/control.c: In function
'HB_FUN_HWG_CALLWINDOWPROC':
../../../../source/winapi/control.c:2195:21: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
2195 | WNDPROC wpProc = ( WNDPROC ) hb_parnl( 1 );
| ^
../../../../source/winapi/control.c: In function
'HB_FUN_HWG_GETUTCTIMEDATE':
../../../../source/winapi/control.c:2268:21: warning: '%04d' directive
writing between 4 and 5 bytes into a region of size between 3 and 7
[-Wformat-overflow=]
2268 | sprintf(cst,"%01d.%04d%02d%02d-%02d:%02d:%02d",st.wDayOfWeek,
st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond);
| ^~~~
../../../../source/winapi/control.c:2268:15: note: directive argument in
the range [0, 65535]
2268 | sprintf(cst,"%01d.%04d%02d%02d-%02d:%02d:%02d",st.wDayOfWeek,
st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../source/winapi/control.c:2268:15: note: directive argument in
the range [0, 65535]
../../../../source/winapi/control.c:2268:15: note: directive argument in
the range [0, 65535]
../../../../source/winapi/control.c:2268:15: note: directive argument in
the range [0, 65535]
../../../../source/winapi/control.c:2268:15: note: directive argument in
the range [0, 65535]
../../../../source/winapi/control.c:2268:15: note: directive argument in
the range [0, 65535]
../../../../source/winapi/control.c:2268:3: note: 'sprintf' output between
20 and 40 bytes into a destination of size 9
2268 | sprintf(cst,"%01d.%04d%02d%02d-%02d:%02d:%02d",st.wDayOfWeek,
st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond);
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../source/winapi/dialog.c: In function 's_lpwAlign':
../../../../source/winapi/dialog.c:206:9: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
206 | ul = ( ULONG ) lpIn;
| ^
../../../../source/winapi/dialog.c:210:11: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
210 | return ( LPWORD ) ul;
| ^
../../../../source/winapi/dialog.c: In function
'HB_FUN_HWG_CREATEDLGTEMPLATE':
../../../../source/winapi/dialog.c:362:14: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
362 | hb_retnl( ( LONG ) s_CreateDlgTemplate( hb_param( 1,
HB_IT_OBJECT ),
| ^
../../../../source/winapi/dialog.c: In function
'HB_FUN_HWG_RELEASEDLGTEMPLATE':
../../../../source/winapi/dialog.c:369:26: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
369 | s_ReleaseDlgTemplate( ( LPDLGTEMPLATE ) hb_parnl( 1 ) );
| ^
../../../../source/winapi/dialog.c: In function
'HB_FUN_HWG__CREATEPROPERTYSHEETPAGE':
../../../../source/winapi/dialog.c:390:22: warning: cast between
incompatible function types from 'LRESULT (*)(struct HWND__ *, UINT,
struct _PROPSHEETPAGEA *)' {aka 'long long int (*)(struct HWND__ *,
unsigned int, struct _PROPSHEETPAGEA *)'} to 'UINT (*)(struct HWND__ *,
UINT, struct _PROPSHEETPAGEA *)' {aka 'unsigned int (*)(struct HWND__ *,
unsigned int, struct _PROPSHEETPAGEA *)'} [-Wcast-function-type]
390 | psp.pfnCallback = ( LPFNPSPCALLBACK ) s_PSPProcRelease;
| ^
../../../../source/winapi/dialog.c:419:22: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
419 | pdlgtemplate = ( LPDLGTEMPLATE ) hb_parnl( 2 );
| ^
../../../../source/winapi/dialog.c: In function 'HB_FUN_HWG__PROPERTYSHEET':
../../../../source/winapi/dialog.c:455:16: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
455 | psp[i] = ( HPROPSHEETPAGE ) hb_arrayGetNL( pArr, i + 1 );
| ^
../../../../source/winapi/dialog.c: In function
'HB_FUN_HWG_CREATEDLGINDIRECT':
../../../../source/winapi/dialog.c:491:22: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
491 | pdlgtemplate = ( LPDLGTEMPLATE ) hb_parnl( 8 );
| ^
../../../../source/winapi/draw.c: In function 'TransparentBmp':
../../../../source/winapi/draw.c:96:13: warning: cast between incompatible
function types from 'FARPROC' {aka 'long long int (*)()'} to 'int
(*)(struct HDC__ *, int, int, int, int, struct HDC__ *, int, int,
int, int, int)' [-Wcast-function-type]
96 | ( TRANSPARENTBLT )
| ^
../../../../source/winapi/draw.c: In function 'HB_FUN_HWG_GETPPSERASE':
../../../../source/winapi/draw.c:146:18: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
146 | BOOL fErase = ( BOOL ) ( &pps->fErase );
| ^
../../../../source/winapi/draw.c: In function 'HB_FUN_HWG_FILLRECT':
../../../../source/winapi/draw.c:271:60: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
271 | HB_ISPOINTER( 6 ) ? ( HBRUSH )HB_PARHANDLE( 6 ) : ( HBRUSH
)hb_parnl(6) );
| ^
../../../../source/winapi/draw.c: In function 'HB_FUN_HWG_DRAWBUTTON':
../../../../source/winapi/draw.c:334:13: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
334 | ( HBRUSH ) ( ( ( iType & 2 ) ? COLOR_3DSHADOW :
COLOR_3DHILIGHT )
| ^
../../../../source/winapi/draw.c:339:13: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
339 | ( HBRUSH ) ( ( ( iType & 2 ) ? COLOR_3DHILIGHT : (
iType & 4 ) ?
| ^
../../../../source/winapi/draw.c:346:16: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
346 | ( HBRUSH ) ( ( ( iType & 2 ) ? COLOR_3DSHADOW :
COLOR_3DLIGHT )
| ^
../../../../source/winapi/draw.c:351:16: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
351 | ( HBRUSH ) ( ( ( iType & 2 ) ? COLOR_3DLIGHT :
COLOR_3DSHADOW )
| ^
In file included from ../../../../include/hwingui.h:18,
from ../../../../source/winapi/draw.c:15:
../../../../source/winapi/draw.c: In function 'HB_FUN_HWG_LOADIMAGE':
../../../../source/winapi/draw.c:395:71: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
395 | HB_RETHANDLE( LoadImage( HB_ISNIL( 1 ) ? GetModuleHandle( NULL )
: ( HINSTANCE ) hb_parnl( 1 ), // handle of the instance that contains
the image
|
^
../../../../include/guilib.h:15:61: note: in definition of macro
'HB_RETHANDLE'
15 | #define HB_RETHANDLE( h ) hb_retptr( ( void * ) ( h ) )
| ^
../../../../source/winapi/draw.c: In function 'HB_FUN_HWG_OPENBITMAP':
../../../../source/winapi/draw.c:719:10: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
719 | if( ( ( long int ) hfbm ) <= 0 )
| ^
In file included from ../../../../include/hwingui.h:18,
from ../../../../source/winapi/draw.c:15:
../../../../source/winapi/draw.c: In function 'HB_FUN_HWG_RELEASEDC':
../../../../include/guilib.h:15:48: warning: cast to pointer from integer
of different size [-Wint-to-pointer-cast]
15 | #define HB_RETHANDLE( h ) hb_retptr( ( void * ) ( h ) )
| ^
../../../../source/winapi/draw.c:952:4: note: in expansion of macro
'HB_RETHANDLE'
952 | HB_RETHANDLE( ReleaseDC( ( HWND ) HB_PARHANDLE( 1 ),
| ^~~~~~~~~~~~
../../../../source/winapi/draw.c: In function 'HB_FUN_HWG_GETDRAWITEMINFO':
../../../../source/winapi/draw.c:991:31: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
991 | temp = hb_itemPutNL( NULL, ( LONG ) lpdis->hwndItem );
| ^
../../../../source/winapi/draw.c: In function 'HB_FUN_HWG_DRAWGRADIENT':
../../../../source/winapi/draw.c:1559:32: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'int (*)(struct HDC__ *, struct _TRIVERTEX *, int, void *, int, int)'
[-Wcast-function-type]
1559 | FuncGradientFill = ( GRADIENTFILL )
| ^
../../../../source/winapi/draw.c:1788:27: warning: using integer absolute
value function 'abs' when argument is of floating point type 'double'
[-Wabsolute-value]
1788 | delta = abs( pow( (long double)(candidates[k].x),
2 ) + pow( (long double)(candidates[k].y), 2 ) -
| ^~~
../../../../source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_VERSION':
../../../../source/winapi/freeimg.c:230:33: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'char * (*)(void)' [-Wcast-function-type]
230 | FREEIMAGE_GETVERSION pFunc = ( FREEIMAGE_GETVERSION )
s_getFunction( NULL,
| ^
../../../../source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_UNLOAD':
../../../../source/winapi/freeimg.c:239:46: warning: cast between
incompatible function types from 'FREEIMAGE_UNLOAD' {aka 'void (*)(struct
FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
239 | ( FREEIMAGE_UNLOAD ) s_getFunction( ( FARPROC ) pUnload,
| ^
../../../../source/winapi/freeimg.c:239:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'void (*)(FIBITMAP *)' {aka 'void (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
239 | ( FREEIMAGE_UNLOAD ) s_getFunction( ( FARPROC ) pUnload,
| ^
../../../../source/winapi/freeimg.c:243:16: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
243 | pUnload( ( FIBITMAP * ) hb_parnl( 1 ) );
| ^
../../../../source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_LOAD':
../../../../source/winapi/freeimg.c:249:44: warning: cast between
incompatible function types from 'FREEIMAGE_LOAD' {aka 'struct FIBITMAP *
(*)(int, const char *, int)'} to 'INT_PTR (*)()' {aka 'long long int
(*)()'} [-Wcast-function-type]
249 | ( FREEIMAGE_LOAD ) s_getFunction( ( FARPROC ) pLoad,
| ^
../../../../source/winapi/freeimg.c:249:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'FIBITMAP * (*)(FREE_IMAGE_FORMAT, const char *, int)' {aka 'struct
FIBITMAP * (*)(int, const char *, int)'} [-Wcast-function-type]
249 | ( FREEIMAGE_LOAD ) s_getFunction( ( FARPROC ) pLoad,
| ^
../../../../source/winapi/freeimg.c:252:58: warning: cast between
incompatible function types from 'FREEIMAGE_GETFIFFROMFILENAME' {aka 'int
(*)(const char *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
252 | ( FREEIMAGE_GETFIFFROMFILENAME ) s_getFunction( ( FARPROC )
| ^
../../../../source/winapi/freeimg.c:252:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'FREE_IMAGE_FORMAT (*)(const char *)' {aka 'int (*)(const char *)'}
[-Wcast-function-type]
252 | ( FREEIMAGE_GETFIFFROMFILENAME ) s_getFunction( ( FARPROC )
| ^
../../../../source/winapi/freeimg.c:258:17: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
258 | hb_retnl( ( ULONG ) pLoad( pGetfiffromfile( name ), name,
| ^
../../../../source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_LOADTYPE':
../../../../source/winapi/freeimg.c:271:44: warning: cast between
incompatible function types from 'FREEIMAGE_LOAD' {aka 'struct FIBITMAP *
(*)(int, const char *, int)'} to 'INT_PTR (*)()' {aka 'long long int
(*)()'} [-Wcast-function-type]
271 | ( FREEIMAGE_LOAD ) s_getFunction( ( FARPROC ) pLoad,
| ^
../../../../source/winapi/freeimg.c:271:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'FIBITMAP * (*)(FREE_IMAGE_FORMAT, const char *, int)' {aka 'struct
FIBITMAP * (*)(int, const char *, int)'} [-Wcast-function-type]
271 | ( FREEIMAGE_LOAD ) s_getFunction( ( FARPROC ) pLoad,
| ^
../../../../source/winapi/freeimg.c:277:17: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
277 | hb_retnl( ( ULONG ) pLoad( ( enum FREE_IMAGE_FORMAT )
hb_parni( 1 ),
| ^
../../../../source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_SAVE':
../../../../source/winapi/freeimg.c:287:44: warning: cast between
incompatible function types from 'FREEIMAGE_SAVE' {aka 'int (*)(int,
struct FIBITMAP *, const char *, int)'} to 'INT_PTR (*)()' {aka 'long long
int (*)()'} [-Wcast-function-type]
287 | ( FREEIMAGE_SAVE ) s_getFunction( ( FARPROC ) pSave,
| ^
../../../../source/winapi/freeimg.c:287:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'BOOL (*)(FREE_IMAGE_FORMAT, FIBITMAP *, const char *, int)' {aka 'int
(*)(int, struct FIBITMAP *, const char *, int)'} [-Wcast-function-type]
287 | ( FREEIMAGE_SAVE ) s_getFunction( ( FARPROC ) pSave,
| ^
../../../../source/winapi/freeimg.c:290:58: warning: cast between
incompatible function types from 'FREEIMAGE_GETFIFFROMFILENAME' {aka 'int
(*)(const char *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
290 | ( FREEIMAGE_GETFIFFROMFILENAME ) s_getFunction( ( FARPROC )
| ^
../../../../source/winapi/freeimg.c:290:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'FREE_IMAGE_FORMAT (*)(const char *)' {aka 'int (*)(const char *)'}
[-Wcast-function-type]
290 | ( FREEIMAGE_GETFIFFROMFILENAME ) s_getFunction( ( FARPROC )
| ^
../../../../source/winapi/freeimg.c:297:19: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
297 | ( FIBITMAP * ) hb_parnl( 1 ), name,
| ^
../../../../source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_SAVETYPE':
../../../../source/winapi/freeimg.c:310:44: warning: cast between
incompatible function types from 'FREEIMAGE_SAVE' {aka 'int (*)(int,
struct FIBITMAP *, const char *, int)'} to 'INT_PTR (*)()' {aka 'long long
int (*)()'} [-Wcast-function-type]
310 | ( FREEIMAGE_SAVE ) s_getFunction( ( FARPROC ) pSave,
| ^
../../../../source/winapi/freeimg.c:310:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'BOOL (*)(FREE_IMAGE_FORMAT, FIBITMAP *, const char *, int)' {aka 'int
(*)(int, struct FIBITMAP *, const char *, int)'} [-Wcast-function-type]
310 | ( FREEIMAGE_SAVE ) s_getFunction( ( FARPROC ) pSave,
| ^
../../../../source/winapi/freeimg.c:317:19: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
317 | ( FIBITMAP * ) hb_parnl( 2 ), name,
| ^
../../../../source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_GETWIDTH':
../../../../source/winapi/freeimg.c:327:48: warning: cast between
incompatible function types from 'FREEIMAGE_GETWIDTH' {aka 'long unsigned
int (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
327 | ( FREEIMAGE_GETWIDTH ) s_getFunction( ( FARPROC )
pGetwidth,
| ^
../../../../source/winapi/freeimg.c:327:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'ULONG (*)(FIBITMAP *)' {aka 'long unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
327 | ( FREEIMAGE_GETWIDTH ) s_getFunction( ( FARPROC )
pGetwidth,
| ^
../../../../source/winapi/freeimg.c:330:41: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
330 | hb_retnl( ( pGetwidth ) ? pGetwidth( ( FIBITMAP * ) hb_parnl( 1
) ) : 0 );
| ^
../../../../source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_GETHEIGHT':
../../../../source/winapi/freeimg.c:336:49: warning: cast between
incompatible function types from 'FREEIMAGE_GETHEIGHT' {aka 'long unsigned
int (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
336 | ( FREEIMAGE_GETHEIGHT ) s_getFunction( ( FARPROC )
pGetheight,
| ^
../../../../source/winapi/freeimg.c:336:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'ULONG (*)(FIBITMAP *)' {aka 'long unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
336 | ( FREEIMAGE_GETHEIGHT ) s_getFunction( ( FARPROC )
pGetheight,
| ^
../../../../source/winapi/freeimg.c:339:43: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
339 | hb_retnl( ( pGetheight ) ? pGetheight( ( FIBITMAP * ) hb_parnl(
1 ) ) :
| ^
../../../../source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_GETBPP':
../../../../source/winapi/freeimg.c:346:46: warning: cast between
incompatible function types from 'FREEIMAGE_GETBPP' {aka 'long unsigned int
(*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
346 | ( FREEIMAGE_GETBPP ) s_getFunction( ( FARPROC ) pGetBPP,
| ^
../../../../source/winapi/freeimg.c:346:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'ULONG (*)(FIBITMAP *)' {aka 'long unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
346 | ( FREEIMAGE_GETBPP ) s_getFunction( ( FARPROC ) pGetBPP,
| ^
../../../../source/winapi/freeimg.c:349:37: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
349 | hb_retnl( ( pGetBPP ) ? pGetBPP( ( FIBITMAP * ) hb_parnl( 1 ) )
: 0 );
| ^
../../../../source/winapi/freeimg.c: In function
'HB_FUN_HWG_FI_GETIMAGETYPE':
../../../../source/winapi/freeimg.c:355:52: warning: cast between
incompatible function types from 'FREEIMAGE_GETIMAGETYPE' {aka 'short int
(*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
355 | ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC )
pGetImageType,
| ^
../../../../source/winapi/freeimg.c:355:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'short int (*)(FIBITMAP *)' {aka 'short int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
355 | ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC )
pGetImageType,
| ^
../../../../source/winapi/freeimg.c:358:49: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
358 | hb_retnl( ( pGetImageType ) ? pGetImageType( ( FIBITMAP * )
hb_parnl( 1 ) )
| ^
../../../../source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_2BITMAP':
../../../../source/winapi/freeimg.c:364:20: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
364 | FIBITMAP *dib = ( FIBITMAP * ) hb_parnl( 1 );
| ^
../../../../source/winapi/freeimg.c:368:47: warning: cast between
incompatible function types from 'FREEIMAGE_GETBITS' {aka 'unsigned char *
(*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
368 | ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
| ^
../../../../source/winapi/freeimg.c:368:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'BYTE * (*)(FIBITMAP *)' {aka 'unsigned char * (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
368 | ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
| ^
../../../../source/winapi/freeimg.c:371:47: warning: cast between
incompatible function types from 'FREEIMAGE_GETINFO' {aka 'struct
tagBITMAPINFO * (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long
int (*)()'} [-Wcast-function-type]
371 | ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
| ^
../../../../source/winapi/freeimg.c:371:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'BITMAPINFO * (*)(FIBITMAP *)' {aka 'struct tagBITMAPINFO * (*)(struct
FIBITMAP *)'} [-Wcast-function-type]
371 | ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
| ^
../../../../source/winapi/freeimg.c:374:53: warning: cast between
incompatible function types from 'FREEIMAGE_GETINFOHEADER' {aka 'struct
tagBITMAPINFOHEADER * (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka
'long long int (*)()'} [-Wcast-function-type]
374 | ( FREEIMAGE_GETINFOHEADER ) s_getFunction( ( FARPROC )
pGetinfoHead,
| ^
../../../../source/winapi/freeimg.c:374:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'BITMAPINFOHEADER * (*)(FIBITMAP *)' {aka 'struct tagBITMAPINFOHEADER *
(*)(struct FIBITMAP *)'} [-Wcast-function-type]
374 | ( FREEIMAGE_GETINFOHEADER ) s_getFunction( ( FARPROC )
pGetinfoHead,
| ^
../../../../source/winapi/freeimg.c:377:14: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
377 | hb_retnl( ( LONG ) CreateDIBitmap( hDC, pGetinfoHead( dib ),
| ^
../../../../source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_FI2DIB':
../../../../source/winapi/freeimg.c:464:20: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
464 | FIBITMAP *dib = ( FIBITMAP * ) hb_parnl( 1 );
| ^
../../../../source/winapi/freeimg.c:468:48: warning: cast between
incompatible function types from 'FREEIMAGE_GETWIDTH' {aka 'long unsigned
int (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
468 | ( FREEIMAGE_GETWIDTH ) s_getFunction( ( FARPROC )
pGetwidth,
| ^
../../../../source/winapi/freeimg.c:468:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'ULONG (*)(FIBITMAP *)' {aka 'long unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
468 | ( FREEIMAGE_GETWIDTH ) s_getFunction( ( FARPROC )
pGetwidth,
| ^
../../../../source/winapi/freeimg.c:471:49: warning: cast between
incompatible function types from 'FREEIMAGE_GETHEIGHT' {aka 'long unsigned
int (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
471 | ( FREEIMAGE_GETHEIGHT ) s_getFunction( ( FARPROC )
pGetheight,
| ^
../../../../source/winapi/freeimg.c:471:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'ULONG (*)(FIBITMAP *)' {aka 'long unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
471 | ( FREEIMAGE_GETHEIGHT ) s_getFunction( ( FARPROC )
pGetheight,
| ^
../../../../source/winapi/freeimg.c:474:46: warning: cast between
incompatible function types from 'FREEIMAGE_GETBPP' {aka 'long unsigned int
(*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
474 | ( FREEIMAGE_GETBPP ) s_getFunction( ( FARPROC ) pGetBPP,
| ^
../../../../source/winapi/freeimg.c:474:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'ULONG (*)(FIBITMAP *)' {aka 'long unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
474 | ( FREEIMAGE_GETBPP ) s_getFunction( ( FARPROC ) pGetBPP,
| ^
../../../../source/winapi/freeimg.c:477:48: warning: cast between
incompatible function types from 'FREEIMAGE_GETBPP' {aka 'long unsigned int
(*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
477 | ( FREEIMAGE_GETPITCH ) s_getFunction( ( FARPROC ) pGetBPP,
| ^
../../../../source/winapi/freeimg.c:477:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'unsigned int (*)(FIBITMAP *)' {aka 'unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
477 | ( FREEIMAGE_GETPITCH ) s_getFunction( ( FARPROC ) pGetBPP,
| ^
../../../../source/winapi/freeimg.c:480:47: warning: cast between
incompatible function types from 'FREEIMAGE_GETBITS' {aka 'unsigned char *
(*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
480 | ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
| ^
../../../../source/winapi/freeimg.c:480:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'BYTE * (*)(FIBITMAP *)' {aka 'unsigned char * (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
480 | ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
| ^
../../../../source/winapi/freeimg.c:493:17: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
493 | hb_retnl( ( LONG ) hdib );
| ^
../../../../source/winapi/freeimg.c: In function 'SET_FREEIMAGE_MARKER':
../../../../source/winapi/freeimg.c:508:52: warning: cast between
incompatible function types from 'FREEIMAGE_GETIMAGETYPE' {aka 'short int
(*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
508 | ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC )
pGetImageType,
| ^
../../../../source/winapi/freeimg.c:508:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'short int (*)(FIBITMAP *)' {aka 'short int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
508 | ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC )
pGetImageType,
| ^
../../../../source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_FI2DIBEX':
../../../../source/winapi/freeimg.c:518:21: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
518 | FIBITMAP *_dib = ( FIBITMAP * ) hb_parnl( 1 );
| ^
../../../../source/winapi/freeimg.c:522:53: warning: cast between
incompatible function types from 'FREEIMAGE_GETCOLORSUSED' {aka 'unsigned
int (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
522 | ( FREEIMAGE_GETCOLORSUSED ) s_getFunction( ( FARPROC )
| ^
../../../../source/winapi/freeimg.c:522:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'unsigned int (*)(FIBITMAP *)' {aka 'unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
522 | ( FREEIMAGE_GETCOLORSUSED ) s_getFunction( ( FARPROC )
| ^
../../../../source/winapi/freeimg.c:525:48: warning: cast between
incompatible function types from 'FREEIMAGE_GETWIDTH' {aka 'long unsigned
int (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
525 | ( FREEIMAGE_GETWIDTH ) s_getFunction( ( FARPROC )
pGetwidth,
| ^
../../../../source/winapi/freeimg.c:525:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'ULONG (*)(FIBITMAP *)' {aka 'long unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
525 | ( FREEIMAGE_GETWIDTH ) s_getFunction( ( FARPROC )
pGetwidth,
| ^
../../../../source/winapi/freeimg.c:528:49: warning: cast between
incompatible function types from 'FREEIMAGE_GETHEIGHT' {aka 'long unsigned
int (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
528 | ( FREEIMAGE_GETHEIGHT ) s_getFunction( ( FARPROC )
pGetheight,
| ^
../../../../source/winapi/freeimg.c:528:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'ULONG (*)(FIBITMAP *)' {aka 'long unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
528 | ( FREEIMAGE_GETHEIGHT ) s_getFunction( ( FARPROC )
pGetheight,
| ^
../../../../source/winapi/freeimg.c:531:46: warning: cast between
incompatible function types from 'FREEIMAGE_GETBPP' {aka 'long unsigned int
(*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
531 | ( FREEIMAGE_GETBPP ) s_getFunction( ( FARPROC ) pGetBPP,
| ^
../../../../source/winapi/freeimg.c:531:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'ULONG (*)(FIBITMAP *)' {aka 'long unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
531 | ( FREEIMAGE_GETBPP ) s_getFunction( ( FARPROC ) pGetBPP,
| ^
../../../../source/winapi/freeimg.c:534:48: warning: cast between
incompatible function types from 'FREEIMAGE_GETPITCH' {aka 'unsigned int
(*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
534 | ( FREEIMAGE_GETPITCH ) s_getFunction( ( FARPROC )
pGetPitch,
| ^
../../../../source/winapi/freeimg.c:534:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'unsigned int (*)(FIBITMAP *)' {aka 'unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
534 | ( FREEIMAGE_GETPITCH ) s_getFunction( ( FARPROC )
pGetPitch,
| ^
../../../../source/winapi/freeimg.c:537:53: warning: cast between
incompatible function types from 'FREEIMAGE_GETINFOHEADER' {aka 'struct
tagBITMAPINFOHEADER * (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka
'long long int (*)()'} [-Wcast-function-type]
537 | ( FREEIMAGE_GETINFOHEADER ) s_getFunction( ( FARPROC )
pGetinfoHead,
| ^
../../../../source/winapi/freeimg.c:537:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'BITMAPINFOHEADER * (*)(FIBITMAP *)' {aka 'struct tagBITMAPINFOHEADER *
(*)(struct FIBITMAP *)'} [-Wcast-function-type]
537 | ( FREEIMAGE_GETINFOHEADER ) s_getFunction( ( FARPROC )
pGetinfoHead,
| ^
../../../../source/winapi/freeimg.c:540:47: warning: cast between
incompatible function types from 'FREEIMAGE_GETINFO' {aka 'struct
tagBITMAPINFO * (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long
int (*)()'} [-Wcast-function-type]
540 | ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
| ^
../../../../source/winapi/freeimg.c:540:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'BITMAPINFO * (*)(FIBITMAP *)' {aka 'struct tagBITMAPINFO * (*)(struct
FIBITMAP *)'} [-Wcast-function-type]
540 | ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
| ^
../../../../source/winapi/freeimg.c:543:47: warning: cast between
incompatible function types from 'FREEIMAGE_GETBITS' {aka 'unsigned char *
(*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
543 | ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
| ^
../../../../source/winapi/freeimg.c:543:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'BYTE * (*)(FIBITMAP *)' {aka 'unsigned char * (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
543 | ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
| ^
../../../../source/winapi/freeimg.c:546:50: warning: cast between
incompatible function types from 'FREEIMAGE_GETPALETTE' {aka 'struct
tagRGBQUAD * (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long
int (*)()'} [-Wcast-function-type]
546 | ( FREEIMAGE_GETPALETTE ) s_getFunction( ( FARPROC )
pGetPalette,
| ^
../../../../source/winapi/freeimg.c:546:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'RGBQUAD * (*)(FIBITMAP *)' {aka 'struct tagRGBQUAD * (*)(struct FIBITMAP
*)'} [-Wcast-function-type]
546 | ( FREEIMAGE_GETPALETTE ) s_getFunction( ( FARPROC )
pGetPalette,
| ^
../../../../source/winapi/freeimg.c:549:52: warning: cast between
incompatible function types from 'FREEIMAGE_GETIMAGETYPE' {aka 'short int
(*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
549 | ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC )
pGetImageType,
| ^
../../../../source/winapi/freeimg.c:549:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'short int (*)(FIBITMAP *)' {aka 'short int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
549 | ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC )
pGetImageType,
| ^
../../../../source/winapi/freeimg.c:595:14: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
595 | hb_retnl( ( LONG ) hMem );
| ^
../../../../source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_DRAW':
../../../../source/winapi/freeimg.c:600:20: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
600 | FIBITMAP *dib = ( FIBITMAP * ) hb_parnl( 1 );
| ^
../../../../source/winapi/freeimg.c:630:47: warning: cast between
incompatible function types from 'FREEIMAGE_GETBITS' {aka 'unsigned char *
(*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
630 | ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
| ^
../../../../source/winapi/freeimg.c:630:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'BYTE * (*)(FIBITMAP *)' {aka 'unsigned char * (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
630 | ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
| ^
../../../../source/winapi/freeimg.c:633:47: warning: cast between
incompatible function types from 'FREEIMAGE_GETINFO' {aka 'struct
tagBITMAPINFO * (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long
int (*)()'} [-Wcast-function-type]
633 | ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
| ^
../../../../source/winapi/freeimg.c:633:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'BITMAPINFO * (*)(FIBITMAP *)' {aka 'struct tagBITMAPINFO * (*)(struct
FIBITMAP *)'} [-Wcast-function-type]
633 | ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
| ^
../../../../source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_BMP2FI':
../../../../source/winapi/freeimg.c:655:51: warning: cast between
incompatible function types from 'FREEIMAGE_ALLOCATE' {aka 'struct FIBITMAP
* (*)(int, int, int, unsigned int, unsigned int, unsigned int)'} to
'INT_PTR (*)()' {aka 'long long int (*)()'} [-Wcast-function-type]
655 | ( FREEIMAGE_ALLOCATE ) s_getFunction( ( FARPROC )
pAllocate,
| ^
../../../../source/winapi/freeimg.c:655:13: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'FIBITMAP * (*)(int, int, int, unsigned int, unsigned int, unsigned
int)' {aka 'struct FIBITMAP * (*)(int, int, int, unsigned int, unsigned
int, unsigned int)'} [-Wcast-function-type]
655 | ( FREEIMAGE_ALLOCATE ) s_getFunction( ( FARPROC )
pAllocate,
| ^
../../../../source/winapi/freeimg.c:658:50: warning: cast between
incompatible function types from 'FREEIMAGE_GETBITS' {aka 'unsigned char *
(*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
658 | ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC )
pGetbits,
| ^
../../../../source/winapi/freeimg.c:658:13: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'BYTE * (*)(FIBITMAP *)' {aka 'unsigned char * (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
658 | ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC )
pGetbits,
| ^
../../../../source/winapi/freeimg.c:661:50: warning: cast between
incompatible function types from 'FREEIMAGE_GETINFO' {aka 'struct
tagBITMAPINFO * (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long
int (*)()'} [-Wcast-function-type]
661 | ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC )
pGetinfo,
| ^
../../../../source/winapi/freeimg.c:661:13: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'BITMAPINFO * (*)(FIBITMAP *)' {aka 'struct tagBITMAPINFO * (*)(struct
FIBITMAP *)'} [-Wcast-function-type]
661 | ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC )
pGetinfo,
| ^
../../../../source/winapi/freeimg.c:664:52: warning: cast between
incompatible function types from 'FREEIMAGE_GETHEIGHT' {aka 'long unsigned
int (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
664 | ( FREEIMAGE_GETHEIGHT ) s_getFunction( ( FARPROC )
pGetheight,
| ^
../../../../source/winapi/freeimg.c:664:13: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'ULONG (*)(FIBITMAP *)' {aka 'long unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
664 | ( FREEIMAGE_GETHEIGHT ) s_getFunction( ( FARPROC )
pGetheight,
| ^
../../../../source/winapi/freeimg.c:676:20: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
676 | hb_retnl( ( LONG ) dib );
| ^
../../../../source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_DIB2FI':
../../../../source/winapi/freeimg.c:726:18: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
726 | HANDLE hdib = ( HANDLE ) hb_parnl( 1 );
| ^
../../../../source/winapi/freeimg.c:735:61: warning: cast between
incompatible function types from 'FREEIMAGE_CONVERTFROMRAWBITS' {aka
'struct FIBITMAP * (*)(unsigned char *, int, int, int, unsigned int,
unsigned int, unsigned int, unsigned int, int)'} to 'INT_PTR (*)()'
{aka 'long long int (*)()'} [-Wcast-function-type]
735 | ( FREEIMAGE_CONVERTFROMRAWBITS ) s_getFunction( (
FARPROC )
| ^
../../../../source/winapi/freeimg.c:735:13: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'FIBITMAP * (*)(BYTE *, int, int, int, unsigned int, unsigned int,
unsigned int, unsigned int, BOOL)' {aka 'struct FIBITMAP * (*)(unsigned
char *, int, int, int, unsigned int, unsigned int, unsigned int,
unsigned int, int)'} [-Wcast-function-type]
735 | ( FREEIMAGE_CONVERTFROMRAWBITS ) s_getFunction( (
FARPROC )
| ^
../../../../source/winapi/freeimg.c:738:53: warning: cast between
incompatible function types from 'FREEIMAGE_GETPALETTE' {aka 'struct
tagRGBQUAD * (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long
int (*)()'} [-Wcast-function-type]
738 | ( FREEIMAGE_GETPALETTE ) s_getFunction( ( FARPROC )
pGetPalette,
| ^
../../../../source/winapi/freeimg.c:738:13: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'RGBQUAD * (*)(FIBITMAP *)' {aka 'struct tagRGBQUAD * (*)(struct FIBITMAP
*)'} [-Wcast-function-type]
738 | ( FREEIMAGE_GETPALETTE ) s_getFunction( ( FARPROC )
pGetPalette,
| ^
../../../../source/winapi/freeimg.c:741:49: warning: cast between
incompatible function types from 'FREEIMAGE_GETBPP' {aka 'long unsigned int
(*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
741 | ( FREEIMAGE_GETBPP ) s_getFunction( ( FARPROC ) pGetBPP,
| ^
../../../../source/winapi/freeimg.c:741:13: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'ULONG (*)(FIBITMAP *)' {aka 'long unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
741 | ( FREEIMAGE_GETBPP ) s_getFunction( ( FARPROC ) pGetBPP,
| ^
../../../../source/winapi/freeimg.c:776:20: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
776 | hb_retnl( ( LONG ) dib );
| ^
../../../../source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_RESCALE':
../../../../source/winapi/freeimg.c:791:47: warning: cast between
incompatible function types from 'FREEIMAGE_RESCALE' {aka 'struct FIBITMAP
* (*)(struct FIBITMAP *, int, int, int)'} to 'INT_PTR (*)()' {aka 'long
long int (*)()'} [-Wcast-function-type]
791 | ( FREEIMAGE_RESCALE ) s_getFunction( ( FARPROC ) pRescale,
| ^
../../../../source/winapi/freeimg.c:791:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'FIBITMAP * (*)(FIBITMAP *, int, int, FREE_IMAGE_FILTER)' {aka 'struct
FIBITMAP * (*)(struct FIBITMAP *, int, int, int)'} [-Wcast-function-type]
791 | ( FREEIMAGE_RESCALE ) s_getFunction( ( FARPROC ) pRescale,
| ^
../../../../source/winapi/freeimg.c:794:48: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
794 | hb_retnl( ( pRescale ) ? ( LONG ) pRescale( ( FIBITMAP * )
hb_parnl( 1 ),
| ^
../../../../source/winapi/freeimg.c:794:29: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
794 | hb_retnl( ( pRescale ) ? ( LONG ) pRescale( ( FIBITMAP * )
hb_parnl( 1 ),
| ^
../../../../source/winapi/freeimg.c: In function
'HB_FUN_HWG_FI_REMOVECHANNEL':
../../../../source/winapi/freeimg.c:802:20: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
802 | FIBITMAP *dib = ( FIBITMAP * ) hb_parnl( 1 );
| ^
../../../../source/winapi/freeimg.c:806:48: warning: cast between
incompatible function types from 'FREEIMAGE_ALLOCATE' {aka 'struct FIBITMAP
* (*)(int, int, int, unsigned int, unsigned int, unsigned int)'} to
'INT_PTR (*)()' {aka 'long long int (*)()'} [-Wcast-function-type]
806 | ( FREEIMAGE_ALLOCATE ) s_getFunction( ( FARPROC )
pAllocate,
| ^
../../../../source/winapi/freeimg.c:806:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'FIBITMAP * (*)(int, int, int, unsigned int, unsigned int, unsigned
int)' {aka 'struct FIBITMAP * (*)(int, int, int, unsigned int, unsigned
int, unsigned int)'} [-Wcast-function-type]
806 | ( FREEIMAGE_ALLOCATE ) s_getFunction( ( FARPROC )
pAllocate,
| ^
../../../../source/winapi/freeimg.c:809:48: warning: cast between
incompatible function types from 'FREEIMAGE_GETWIDTH' {aka 'long unsigned
int (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
809 | ( FREEIMAGE_GETWIDTH ) s_getFunction( ( FARPROC )
pGetwidth,
| ^
../../../../source/winapi/freeimg.c:809:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'ULONG (*)(FIBITMAP *)' {aka 'long unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
809 | ( FREEIMAGE_GETWIDTH ) s_getFunction( ( FARPROC )
pGetwidth,
| ^
../../../../source/winapi/freeimg.c:812:49: warning: cast between
incompatible function types from 'FREEIMAGE_GETHEIGHT' {aka 'long unsigned
int (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
812 | ( FREEIMAGE_GETHEIGHT ) s_getFunction( ( FARPROC )
pGetheight,
| ^
../../../../source/winapi/freeimg.c:812:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'ULONG (*)(FIBITMAP *)' {aka 'long unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
812 | ( FREEIMAGE_GETHEIGHT ) s_getFunction( ( FARPROC )
pGetheight,
| ^
../../../../source/winapi/freeimg.c:815:50: warning: cast between
incompatible function types from 'FREEIMAGE_SETCHANNEL' {aka 'int
(*)(struct FIBITMAP *, struct FIBITMAP *, int)'} to 'INT_PTR (*)()' {aka
'long long int (*)()'} [-Wcast-function-type]
815 | ( FREEIMAGE_SETCHANNEL ) s_getFunction( ( FARPROC )
pSetChannel,
| ^
../../../../source/winapi/freeimg.c:815:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'BOOL (*)(FIBITMAP *, FIBITMAP *, FREE_IMAGE_COLOR_CHANNEL)' {aka 'int
(*)(struct FIBITMAP *, struct FIBITMAP *, int)'} [-Wcast-function-type]
815 | ( FREEIMAGE_SETCHANNEL ) s_getFunction( ( FARPROC )
pSetChannel,
| ^
../../../../source/winapi/freeimg.c:818:46: warning: cast between
incompatible function types from 'FREEIMAGE_UNLOAD' {aka 'void (*)(struct
FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long int (*)()'}
[-Wcast-function-type]
818 | ( FREEIMAGE_UNLOAD ) s_getFunction( ( FARPROC ) pUnload,
| ^
../../../../source/winapi/freeimg.c:818:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'void (*)(FIBITMAP *)' {aka 'void (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
818 | ( FREEIMAGE_UNLOAD ) s_getFunction( ( FARPROC ) pUnload,
| ^
../../../../source/winapi/freeimg.c: In function '_TellProc':
../../../../source/winapi/freeimg.c:880:13: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
880 | return ( ( long int ) g_load_address - ( long int ) handle );
| ^
../../../../source/winapi/freeimg.c:880:43: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
880 | return ( ( long int ) g_load_address - ( long int ) handle );
| ^
../../../../source/winapi/freeimg.c: In function
'HB_FUN_HWG_FI_LOADFROMMEM':
../../../../source/winapi/freeimg.c:886:54: warning: cast between
incompatible function types from 'FREEIMAGE_LOADFROMHANDLE' {aka 'struct
FIBITMAP * (*)(int, struct FreeImageIO *, void *, int)'} to 'INT_PTR
(*)()' {aka 'long long int (*)()'} [-Wcast-function-type]
886 | ( FREEIMAGE_LOADFROMHANDLE ) s_getFunction( ( FARPROC )
| ^
../../../../source/winapi/freeimg.c:886:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'FIBITMAP * (*)(FREE_IMAGE_FORMAT, FreeImageIO *, void *, int)' {aka
'struct FIBITMAP * (*)(int, struct FreeImageIO *, void *, int)'}
[-Wcast-function-type]
886 | ( FREEIMAGE_LOADFROMHANDLE ) s_getFunction( ( FARPROC )
| ^
../../../../source/winapi/freeimg.c:919:17: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
919 | hb_retnl( ( LONG ) pLoadFromHandle( fif, &io, ( fi_handle )
image,
| ^
../../../../source/winapi/freeimg.c: In function
'HB_FUN_HWG_FI_ROTATECLASSIC':
../../../../source/winapi/freeimg.c:929:53: warning: cast between
incompatible function types from 'FREEIMAGE_ROTATECLASSIC' {aka 'struct
FIBITMAP * (*)(struct FIBITMAP *, double)'} to 'INT_PTR (*)()' {aka 'long
long int (*)()'} [-Wcast-function-type]
929 | ( FREEIMAGE_ROTATECLASSIC ) s_getFunction( ( FARPROC )
| ^
../../../../source/winapi/freeimg.c:929:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'FIBITMAP * (*)(FIBITMAP *, double)' {aka 'struct FIBITMAP * (*)(struct
FIBITMAP *, double)'} [-Wcast-function-type]
929 | ( FREEIMAGE_ROTATECLASSIC ) s_getFunction( ( FARPROC )
| ^
../../../../source/winapi/freeimg.c:932:60: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
932 | hb_retnl( ( pRotateClassic ) ? ( LONG ) pRotateClassic( (
FIBITMAP * )
| ^
../../../../source/winapi/freeimg.c:932:35: warning: cast from pointer to
integer of different size [-Wpointer-to-int-cast]
932 | hb_retnl( ( pRotateClassic ) ? ( LONG ) pRotateClassic( (
FIBITMAP * )
| ^
../../../../source/winapi/freeimg.c: In function
'HB_FUN_HWG_FI_GETDOTSPERMETERX':
../../../../source/winapi/freeimg.c:939:56: warning: cast between
incompatible function types from 'FREEIMAGE_GETDOTSPERMETERX' {aka
'unsigned int (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long
int (*)()'} [-Wcast-function-type]
939 | ( FREEIMAGE_GETDOTSPERMETERX ) s_getFunction( ( FARPROC )
| ^
../../../../source/winapi/freeimg.c:939:10: warning: cast between
incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to
'unsigned int (*)(FIBITMAP *)' {aka 'unsigned int (*)(struct FIBITMAP *)'}
[-Wcast-function-type]
939 | ( FREEIMAGE_GETDOTSPERMETERX ) s_getFunction( ( FARPROC )
| ^
../../../../source/winapi/freeimg.c:942:57: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
942 | hb_retnl( ( pGetDotsPerMeterX ) ? pGetDotsPerMeterX( ( FIBITMAP
* )
| ^
../../../../source/winapi/freeimg.c: In function
'HB_FUN_HWG_FI_GETDOTSPERMETERY':
../../../../source/winapi/freeimg.c:949:56: warning: cast between
incompatible function types from 'FREEIMAGE_GETDOTSPERMETERY' {aka
'unsigned int (*)(struct FIBITMAP *)'} to 'INT_PTR (*)()' {aka 'long long
int (*)()'} [-Wcast-function-type]
949 | ( FREEIMAGE_GETDOTSPERMETERY ) s_getFunction( ( FARPROC )
| ...
[truncated message content] |