Hi
System: Windows 11 Pro.
I downloaded the newest mingw (12.2.0) and newest harbour from git server.
During building a harbour to 32bit binaries, I get many warnings:
In file included from ../../../tiffiop.h:33,
from ../../../print.c:32:
../../../print.c: In function '_TIFFPrintField':
../../../tiffconf.h:53:28: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
53 | #define TIFF_UINT64_FORMAT "%" HB_PF64 "u"
| ^~~
../../../print.c:101:37: note: in expansion of macro 'TIFF_UINT64_FORMAT'
101 | fprintf(fd, TIFF_UINT64_FORMAT,
| ^~~~~~~~~~~~~~~~~~
../../../tiffconf.h:53:41: note: format string is defined here
53 | #define TIFF_UINT64_FORMAT "%" HB_PF64 "u"
| ~~~~~~~~~~~~^
| |
| unsigned int
| %" HB_PF64 "llu
../../../tiffconf.h:50:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
50 | #define TIFF_INT64_FORMAT "%" HB_PF64 "d"
| ^~~
../../../print.c:104:37: note: in expansion of macro 'TIFF_INT64_FORMAT'
104 | fprintf(fd, TIFF_INT64_FORMAT, (TIFF_INT64_T)((int64 *) raw_data)[j]);
| ^~~~~~~~~~~~~~~~~
../../../tiffconf.h:50:40: note: format string is defined here
50 | #define TIFF_INT64_FORMAT "%" HB_PF64 "d"
| ~~~~~~~~~~~~^
| |
| int
| %" HB_PF64 "lld
../../../print.c:106:37: warning: 'I' flag used with '%x' gnu_printf format [-Wformat=]
106 | fprintf(fd, "0x%" HB_PF64 "x",
| ^~~~~
../../../print.c:106:52: note: format string is defined here
106 | fprintf(fd, "0x%" HB_PF64 "x",
| ^
../../../print.c:106:37: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
106 | fprintf(fd, "0x%" HB_PF64 "x",
| ^~~~~
107 | (TIFF_UINT64_T)((uint64 *) raw_data)[j]);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long long unsigned int
../../../print.c:106:52: note: format string is defined here
106 | fprintf(fd, "0x%" HB_PF64 "x",
| ~~~~~~~~~~~~^
| |
| unsigned int
| %" HB_PF64 "llx
../../../print.c: In function 'TIFFPrintDirectory':
../../../print.c:229:21: warning: 'I' flag used with '%x' gnu_printf format [-Wformat=]
229 | fprintf(fd, "TIFF Directory at offset 0x%" HB_PF64 "x (%" HB_PF64 "u)\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../print.c:229:61: note: format string is defined here
229 | fprintf(fd, "TIFF Directory at offset 0x%" HB_PF64 "x (%" HB_PF64 "u)\n",
| ^
../../../print.c:229:21: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long long unsigned int' [-Wformat=]
229 | fprintf(fd, "TIFF Directory at offset 0x%" HB_PF64 "x (%" HB_PF64 "u)\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
230 | (TIFF_UINT64_T) tif->tif_diroff,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long long unsigned int
../../../print.c:229:61: note: format string is defined here
229 | fprintf(fd, "TIFF Directory at offset 0x%" HB_PF64 "x (%" HB_PF64 "u)\n",
| ~~~~~~~~~~~~^
| |
| unsigned int
| %" HB_PF64 "llx
../../../print.c:229:21: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long long unsigned int' [-Wformat=]
229 | fprintf(fd, "TIFF Directory at offset 0x%" HB_PF64 "x (%" HB_PF64 "u)\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
230 | (TIFF_UINT64_T) tif->tif_diroff,
231 | (TIFF_UINT64_T) tif->tif_diroff);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long long unsigned int
../../../print.c:229:76: note: format string is defined here
229 | fprintf(fd, "TIFF Directory at offset 0x%" HB_PF64 "x (%" HB_PF64 "u)\n",
| ~~~~~~~~~~~~^
| |
| unsigned int
| %" HB_PF64 "llu
../../../print.c:535:37: warning: unknown conversion type character 'I' in format [-Wformat=]
535 | fprintf(fd, " %5" HB_PF64 "u",
| ^~~~~
In file included from ../../../tiffconf.h:10:
C:/harb/Harbour/include/hbdefs.h:740:23: note: format string is defined here
740 | # define PFLL "I64"
| ^
../../../print.c:535:37: warning: too many arguments for format [-Wformat-extra-args]
535 | fprintf(fd, " %5" HB_PF64 "u",
| ^~~~~
../../../print.c:636:37: warning: unknown conversion type character 'I' in format [-Wformat=]
636 | fprintf(fd, " %3lu: [%8" HB_PF64 "u, %8" HB_PF64 "u]\n",
| ^~~~~~~~~~~~~~~
C:/harb/Harbour/include/hbdefs.h:740:23: note: format string is defined here
740 | # define PFLL "I64"
| ^
../../../print.c:636:37: warning: unknown conversion type character 'I' in format [-Wformat=]
636 | fprintf(fd, " %3lu: [%8" HB_PF64 "u, %8" HB_PF64 "u]\n",
| ^~~~~~~~~~~~~~~
C:/harb/Harbour/include/hbdefs.h:740:23: note: format string is defined here
740 | # define PFLL "I64"
| ^
../../../print.c:636:37: warning: too many arguments for format [-Wformat-extra-args]
636 | fprintf(fd, " %3lu: [%8" HB_PF64 "u, %8" HB_PF64 "u]\n",
| ^~~~~~~~~~~~~~~
../../../hbver.c: In function 's_hb_winVerifyVersionInit':
../../../hbver.c:328:35: warning: cast between incompatible function types from 'FARPROC' {aka 'int (__attribute__((stdcall)) *)()'} to 'ULONGLONG (__attribute__((stdcall)) *)(ULONGLONG, DWORD, BYTE)' {aka 'long long unsigned int (__attribute__((stdcall)) *)(long long unsigned int, long unsigned int, unsigned char)'} [-Wcast-function-type]
328 | s_pVerSetConditionMask = ( _HB_VERSETCONDITIONMASK ) HB_WINAPI_GETPROCADDRESS( hModule, "VerSetConditionMask" );
| ^
../../../hbver.c: In function 's_hb_winVerifyVersionInit':
../../../hbver.c:328:35: warning: cast between incompatible function types from 'FARPROC' {aka 'int (__attribute__((stdcall)) *)()'} to 'ULONGLONG (__attribute__((stdcall)) *)(ULONGLONG, DWORD, BYTE)' {aka 'long long unsigned int (__attribute__((stdcall)) *)(long long unsigned int, long unsigned int, unsigned char)'} [-Wcast-function-type]
328 | s_pVerSetConditionMask = ( _HB_VERSETCONDITIONMASK ) HB_WINAPI_GETPROCADDRESS( hModule, "VerSetConditionMask" );
| ^
../../../hbpp.c: In function 'hb_pp_generateVerInfo':
../../../hbpp.c:353:22: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'HB_MAXIN
' {aka 'long long int'} [-Wformat=]
353 | fprintf( fout, "#define HB_VER_REVID %" PFHL "ulu\n", nRevID );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
| |
| HB_MAXINT {aka long long int}
../../../hbpp.c:353:65: note: format string is defined here
353 | fprintf( fout, "#define HB_VER_REVID %" PFHL "ulu\n", nRevID );
| ~~~~~~~~~^
| |
| unsigned int
| %" PFHL "llu
../../../hbpp.c: In function 'hb_pp_generateVerInfo':
../../../hbpp.c:353:22: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'HB_MAXIN
' {aka 'long long int'} [-Wformat=]
353 | fprintf( fout, "#define HB_VER_REVID %" PFHL "ulu\n", nRevID );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
| |
| HB_MAXINT {aka long long int}
../../../hbpp.c:353:65: note: format string is defined here
353 | fprintf( fout, "#define HB_VER_REVID %" PFHL "ulu\n", nRevID );
| ~~~~~~~~~^
| |
| unsigned int
| %" PFHL "llu
../../../extrap.c: In function 'hb_winExceptionHandler':
../../../extrap.c:420:49: warning: cast between incompatible function types from 'FARPROC' {aka 'int (__attribute__((stdcall)) *)()'} to 'void * (__attribute__((stdcall)) *)(DWORD, DWORD)' {aka 'void * (__attribute__((stdcall)) *)(long unsigned int, long unsigned int)'} [-Wcast-function-type]
420 | P_CTH32SSH pCreateToolhelp32Snapshot = ( P_CTH32SSH ) HB_WINAPI_GETPROCADDRESS( hToolhelp, "CreateToolhelp32Snapshot" );
| ^
../../../extrap.c: In function 'hb_winExceptionHandler':
../../../extrap.c:420:49: warning: cast between incompatible function types from 'FARPROC' {aka 'int (__attribute__((stdcall)) *)()'} to 'void * (__attribute__((stdcall)) *)(DWORD, DWORD)' {aka 'void * (__attribute__((stdcall)) *)(long unsigned int, long unsigned int)'} [-Wcast-function-type]
420 | P_CTH32SSH pCreateToolhelp32Snapshot = ( P_CTH32SSH ) HB_WINAPI_GETPROCADDRESS( hToolhelp, "CreateToolhelp32Snapshot" );
| ^
../../../dllpcode.c: In function 'hb_dllGetProcAddress':
../../../dllpcode.c:142:26: warning: cast between incompatible function types from 'FARPROC' {aka 'int (__attribute__((stdcall)) *)()'} to 'void (* (*)(const char *))(void)' [-Wcast-function-type]
142 | s_pProcGet = ( HB_PROC_GET ) GetProcAddress( s_hModule, s_szGetProcAddr + i );
| ^
../../../../extrap.c: In function 'hb_winExceptionHandler':
../../../../extrap.c:420:49: warning: cast between incompatible function types from 'FARPROC' {aka 'int (__attribute__((stdcall)) *)()'} to 'void * (__attribute__((stdcall)) *)(DWORD, DWORD)' {aka 'void * (__attribute__((stdcall)) *)(long unsigned int, long unsigned int)'} [-Wcast-function-type]
420 | P_CTH32SSH pCreateToolhelp32Snapshot = ( P_CTH32SSH ) HB_WINAPI_GETPROCADDRESS( hToolhelp, "CreateToolhelp32Snapshot" );
| ^
../../../../extrap.c: In function 'hb_winExceptionHandler':
../../../../extrap.c:420:49: warning: cast between incompatible function types from 'FARPROC' {aka 'int (__attribute__((stdcall)) *)()'} to 'void * (__attribute__((stdcall)) *)(DWORD, DWORD)' {aka 'void * (__attribute__((stdcall)) *)(long unsigned int, long unsigned int)'} [-Wcast-function-type]
420 | P_CTH32SSH pCreateToolhelp32Snapshot = ( P_CTH32SSH ) HB_WINAPI_GETPROCADDRESS( hToolhelp, "CreateToolhelp32Snapshot" );
| ^
../../../gtwin.c: In function 'hb_getConsoleWindowHandle':
../../../gtwin.c:632:32: warning: cast between incompatible function types from 'FARPROC' {aka 'int (__attribute__((stdcall)) *)()'} to 'struct HWND__ * (__attribute__((stdcall)) *)(void)' [-Wcast-function-type]
632 | s_pGetConsoleWindow = ( P_GETCONSOLEWINDOW ) HB_WINAPI_GETPROCADDRESS( hModule, "GetConsoleWindow" );
| ^
../../../gtwin.c: In function 'hb_getConsoleWindowHandle':
../../../gtwin.c:632:32: warning: cast between incompatible function types from 'FARPROC' {aka 'int (__attribute__((stdcall)) *)()'} to 'struct HWND__ * (__attribute__((stdcall)) *)(void)' [-Wcast-function-type]
632 | s_pGetConsoleWindow = ( P_GETCONSOLEWINDOW ) HB_WINAPI_GETPROCADDRESS( hModule, "GetConsoleWindow" );
| ^
../../../wacore.c: In function 'hb_rddCloseAll':
../../../wacore.c:62:66: warning: array subscript 0 is outside array bounds of 'HB_USHORT[0]' {aka 'short unsigned int[
'} [-Warray-bounds]
62 | pRddInfo->waList[ pRddInfo->waNums[ pRddInfo->uiCurrArea ] ] : \
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
../../../wacore.c:300:7: note: in expansion of macro 'HB_SET_WA'
300 | HB_SET_WA( 1 );
| ^~~~~~~~~
../../../wacore.c: In function 'hb_rddCloseAll':
../../../wacore.c:62:66: warning: array subscript 0 is outside array bounds of 'HB_USHORT[0]' {aka 'short unsigned int[
'} [-Warray-bounds]
62 | pRddInfo->waList[ pRddInfo->waNums[ pRddInfo->uiCurrArea ] ] : \
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
../../../wacore.c:300:7: note: in expansion of macro 'HB_SET_WA'
300 | HB_SET_WA( 1 );
| ^~~~~~~~~
hbmk2[minizip]: Exit status: 50: stop requested
hbmk2[bz2]: Exit status: 50: stop requested
../../../../../contrib/hbwin/win_bmp.c: In function 'HB_FUN_WIN_DRAWBITMAP':
../../../../../contrib/hbwin/win_bmp.c:219:19: warning: dangling pointer 'pbmi' to 'bmi' may be used [-Wdangling-pointer=]
219 | hb_retl( StretchDIBits( hDC, hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
220 | 0, 0, iWidth, iHeight, pBits, pbmi,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
221 | DIB_RGB_COLORS, SRCCOPY ) != ( int ) GDI_ERROR );
| ~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../contrib/hbwin/win_bmp.c:200:21: note: 'bmi' declared here
200 | BITMAPINFO bmi;
| ^~~
C:/harb/Harbour/contrib/hbwin/win_bmp.c: In function 'HB_FUN_WIN_DRAWBITMAP':
C:/harb/Harbour/contrib/hbwin/win_bmp.c:219:19: warning: dangling pointer 'pbmi' to 'bmi' may be used [-Wdangling-pointer=]
219 | hb_retl( StretchDIBits( hDC, hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
220 | 0, 0, iWidth, iHeight, pBits, pbmi,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
221 | DIB_RGB_COLORS, SRCCOPY ) != ( int ) GDI_ERROR );
| ~~~~~~~~~~~~~~~~~~~~~~~~~
C:/harb/Harbour/contrib/hbwin/win_bmp.c:200:21: note: 'bmi' declared here
200 | BITMAPINFO bmi;
| ^~~
../../../../../contrib/3rd/sqlite3/sqlite3.c: In function 'sqlite3SelectNew':
../../../../../contrib/3rd/sqlite3/sqlite3.c:99571:10: warning: function may return address of local variable [-Wreturn-local-addr]
99571 | return pNew;
| ^~~~
../../../../../contrib/3rd/sqlite3/sqlite3.c:99536:10: note: declared here
99536 | Select standin;
| ^~~~~~~
hbmk2[sqlite3]: Exit status: 50: stop requested
hbmk2[xdiff]: Exit status: 50: stop requested
hbmk2[tinymt]: Exit status: 50: stop requested
hbmk2[hbssls]: Warning: Missing dependency: openssl
hbmk2[minizip]: Exit status: 50: stop requested
hbmk2[mxml]: Exit status: 50: stop requested
hbmk2[minilzo]: Exit status: 50: stop requested
hbmk2[lzf]: Exit status: 50: stop requested
hbmk2[libhpdf]: Exit status: 50: stop requested
hbmk2[expat]: Exit status: 50: stop requested
hbmk2[bz2]: Exit status: 50: stop requested
C:/harb/mingw/mingw32/bin/../lib/gcc/i686-w64-mingw32/12.2.0/../../../../i686-w64-mingw32/bin/ld.exe: ../bin/win/mingw/.hbmk/xhb-32/hbdyn/xhberror.o:xhberror.c:(.text+0x4fb): undefined reference to `hb_vmSetDynFunc'
collect2.exe: error: ld returned 1 exit status
hbmk2[xhb]: Error: Running dynamic lib link command. 1
hbmk2[xhb]: Exit status: 7: failed in final assembly (linker or library manager)
hbmk2[sddpg]: Warning: Missing dependency: pgsql
hbmk2[sddpg]: Exit status: 10: dependency missing or disabled
hbmk2[sddoci]: Warning: Missing dependency: ocilib
hbmk2[sddoci]: Exit status: 10: dependency missing or disabled
hbmk2[sddmy]: Warning: Missing dependency: mysql
hbmk2[sddmy]: Exit status: 10: dependency missing or disabled
hbmk2[sddfb]: Warning: Missing dependency: firebird
hbmk2[sddfb]: Exit status: 10: dependency missing or disabled
hbmk2[rddads]: Warning: Missing dependency: ads
hbmk2[rddads]: Exit status: 10: dependency missing or disabled
hbmk2[hbunix]: Exit status: 50: stop requested
hbmk2[hbssls]: Warning: Missing dependency: openssl
../../../../../contrib/hbsqlit3/core.c: In function 'SQL3ProfileLog':
../../../../../contrib/hbsqlit3/core.c:1773:26: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'sqlite3_uint64' {aka 'long long unsigned int'} [-Wformat=]
1773 | fprintf( hFile, "%s - %" PFLL "u\n", sProfileMsg, uint64 );
| ^~~~~~~~ ~~~~~~
| |
| sqlite3_uint64 {aka long long unsigned int}
../../../../../contrib/hbsqlit3/core.c:1773:41: note: format string is defined here
1773 | fprintf( hFile, "%s - %" PFLL "u\n", sProfileMsg, uint64 );
| ~~~~~~~~~^
| |
| unsigned int
| %" PFLL "llu
C:/harb/Harbour/contrib/hbsqlit3/core.c: In function 'SQL3ProfileLog':
C:/harb/Harbour/contrib/hbsqlit3/core.c:1773:26: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'sqlite3_uint64' {aka 'long long unsigned int'} [-Wformat=]
1773 | fprintf( hFile, "%s - %" PFLL "u\n", sProfileMsg, uint64 );
| ^~~~~~~~ ~~~~~~
| |
| sqlite3_uint64 {aka long long unsigned int}
C:/harb/Harbour/contrib/hbsqlit3/core.c:1773:41: note: format string is defined here
1773 | fprintf( hFile, "%s - %" PFLL "u\n", sProfileMsg, uint64 );
| ~~~~~~~~~^
| |
| unsigned int
| %" PFLL "llu
hbmk2[hbpgsql]: Warning: Missing dependency: pgsql
hbmk2[hbpgsql]: Exit status: 10: dependency missing or disabled
hbmk2[hbmysql]: Warning: Missing dependency: mysql
hbmk2[hbmysql]: Exit status: 10: dependency missing or disabled
hbmk2[hbmagic]: Warning: Missing dependency: libmagic
hbmk2[hbmagic]: Exit status: 10: dependency missing or disabled
hbmk2[hbhpdf]: Warning: No import library sources were found.
hbmk2[hbgs]: Warning: Missing dependency: gs
hbmk2[hbgs]: Exit status: 10: dependency missing or disabled
hbmk2[hbgd]: Warning: Missing dependency: gd
hbmk2[hbgd]: Exit status: 10: dependency missing or disabled
hbmk2[hbfimage]: Warning: Missing dependency: freeimage
hbmk2[hbfimage]: Exit status: 10: dependency missing or disabled
hbmk2[hbfbird]: Warning: Missing dependency: firebird
hbmk2[hbfbird]: Exit status: 10: dependency missing or disabled
hbmk2[hbcurls]: Warning: Missing dependency: curl
hbmk2[hbcups]: Exit status: 50: stop requested
hbmk2[hbcairo]: Warning: Missing dependency: cairo
hbmk2[hbcairo]: Exit status: 10: dependency missing or disabled
hbmk2[hbblat]: Warning: Missing dependency: blat
hbmk2[hbblat]: Exit status: 10: dependency missing or disabled
../../../../../contrib/gtwvg/gtwvgd.c: In function 'hb_gt_wvt_FullScreen':
../../../../../contrib/gtwvg/gtwvgd.c:2712:25: warning: cast between incompatible function types from 'FARPROC' {aka 'int (__attribute__((stdcall)) *)()'} to 'struct HMONITOR__ * (__attribute__((stdcall)) *)(struct HWND__ *, DWORD)' {aka 'struct HMONITOR__ * (__attribute__((stdcall)) *)(struct HWND__ *, long unsigned int)'} [-Wcast-function-type]
2712 | pMonitorFromWindow = ( P_MFW ) HB_WINAPI_GETPROCADDRESS( GetModuleHandle( TEXT( "user32.dll" ) ),
| ^
C:/harb/Harbour/contrib/gtwvg/gtwvgd.c: In function 'hb_gt_wvt_FullScreen':
C:/harb/Harbour/contrib/gtwvg/gtwvgd.c:2712:25: warning: cast between incompatible function types from 'FARPROC' {aka 'int (__attribute__((stdcall)) *)()'} to 'struct HMONITOR__ * (__attribute__((stdcall)) *)(struct HWND__ *, DWORD)' {aka
struct HMONITOR__ * (__attribute__((stdcall)) *)(struct HWND__ *, long unsigned int)'} [-Wcast-function-type]
2712 | pMonitorFromWindow = ( P_MFW ) HB_WINAPI_GETPROCADDRESS( GetModuleHandle( TEXT( "user32.dll" ) ),
| ^
hbmk2[gtqtc]: plugin: HB_WITH_QT, HB_QTPATH, HB_QTSUFFIX not set, could not autodetect 'moc.exe' executable
hbmk2[gtqtc]: Exit status: 20: plugin initialization
hbmk2[gtalleg]: Warning: Missing dependency: allegro
hbmk2[gtalleg]: Exit status: 10: dependency missing or disabled
It is OK?
I I build my application in this compiler is will be OK?
Regards
Jacek