Página 2 de 7

Hwgui 2.22 release 1

Enviado: 16 Dez 2018 11:22
por Itamar M. Lins Jr.
Ola!
estou compilando harbour 3.4 + LLVM/CLANG
Cola o texto usando

Código: Selecionar todos

.
Aqui com GCC 7.3 está ok.

Saudações,
Itamar M. Lins Jr.

Hwgui 2.22 release 1

Enviado: 16 Dez 2018 11:28
por JoséQuintas
Explicação das alterações:

${hb_name} já pega automático do nome do HBP, assim basta renomear o HBP e já renomeia a LIB
${hb_addons} já pega automático a pasta de add-ons, conforme a localização do hbmk2 - isto separa harbour 3.2/3.4/xHarbour instalados na mesma máquina
${hb_plat}/${hb_comp} separa conforme plataforma (Windows/Linux) e compilador (mingw/bcc/etc) - isto separa conforme compilador C instalados na mesma máquina
hbx=cria o arquivo de pesquisa do hbmk2, pra buscar informação de funções, e até mesmo pra formatar maiúsculas/minúsculas conforme fontes originais da hwgui

com essas configurações, não importa se tem mais de uma versão de harbour/xharbour, ou mais de um compilador C, vai separar certinho.
A exceção é se tiver mais de uma versão de mingw, ou de bcc ou de msvc, porque não separa versão, apenas separa compilador.
Por exemplo... msvc 2010 e msvc 2013, os dois vão pra uma pasta msvc, então isso complicaria o automático.

Aqui usei mingw 8.1.
Com certeza, quanto mais nova a versão do mingw, mais alertas.
E a 8.1 ainda não é oficial do Harbour.

Hwgui 2.22 release 1

Enviado: 16 Dez 2018 11:43
por JoséQuintas

Código: Selecionar todos

c /cmd hwgui_all.hbp

d:\github\allgui\hwgui>d:\cdrom\FONTES\build\build.exe /cmd hwgui_all.hbp

d:\github\allgui\hwgui>HBMK2 hwgui_all.hbp hwgui.hbc -m -n -workdir=c:\temp -compr -strip -mt -quiet -q -ge1 -Id:\cdrom\FONTES\build\
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_VERSION':
d:/github/allgui/hwgui/source/winapi/freeimg.c:230:33: warning: cast between incompatible function types from 'FARPROC' to 'char * (__attribute__((stdcall)) *)(void)' [-Wcast-function-type]
    FREEIMAGE_GETVERSION pFunc = ( FREEIMAGE_GETVERSION ) s_getFunction( NULL,
                                 ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_UNLOAD':
d:/github/allgui/hwgui/source/winapi/freeimg.c:239:46: warning: cast between incompatible function types from 'FREEIMAGE_UNLOAD' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_UNLOAD ) s_getFunction( ( FARPROC ) pUnload,
                                              ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:239:10: warning: cast between incompatible function types from 'FARPROC' to 'void (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_UNLOAD ) s_getFunction( ( FARPROC ) pUnload,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_LOAD':
d:/github/allgui/hwgui/source/winapi/freeimg.c:249:44: warning: cast between incompatible function types from 'FREEIMAGE_LOAD' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_LOAD ) s_getFunction( ( FARPROC ) pLoad,
                                            ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:249:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FREE_IMAGE_FORMAT,  const char *, int)' [-Wcast-function-type]
          ( FREEIMAGE_LOAD ) s_getFunction( ( FARPROC ) pLoad,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_LOADTYPE':
d:/github/allgui/hwgui/source/winapi/freeimg.c:271:44: warning: cast between incompatible function types from 'FREEIMAGE_LOAD' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_LOAD ) s_getFunction( ( FARPROC ) pLoad,
                                            ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:271:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FREE_IMAGE_FORMAT,  const char *, int)' [-Wcast-function-type]
          ( FREEIMAGE_LOAD ) s_getFunction( ( FARPROC ) pLoad,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_GETIMAGETYPE':
d:/github/allgui/hwgui/source/winapi/freeimg.c:355:52: warning: cast between incompatible function types from 'FREEIMAGE_GETIMAGETYPE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC ) pGetImageType,
                                                    ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:355:10: warning: cast between incompatible function types from 'FARPROC' to 'short int (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC ) pGetImageType,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_2BITMAP':
d:/github/allgui/hwgui/source/winapi/freeimg.c:368:47: warning: cast between incompatible function types from 'FREEIMAGE_GETBITS' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:368:10: warning: cast between incompatible function types from 'FARPROC' to 'BYTE * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:371:47: warning: cast between incompatible function types from 'FREEIMAGE_GETINFO' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:371:10: warning: cast between incompatible function types from 'FARPROC' to 'BITMAPINFO * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:374:53: warning: cast between incompatible function types from 'FREEIMAGE_GETINFOHEADER' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETINFOHEADER ) s_getFunction( ( FARPROC ) pGetinfoHead,
                                                     ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:374:10: warning: cast between incompatible function types from 'FARPROC' to 'BITMAPINFOHEADER * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETINFOHEADER ) s_getFunction( ( FARPROC ) pGetinfoHead,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_FI2DIB':
d:/github/allgui/hwgui/source/winapi/freeimg.c:480:47: warning: cast between incompatible function types from 'FREEIMAGE_GETBITS' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:480:10: warning: cast between incompatible function types from 'FARPROC' to 'BYTE * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'SET_FREEIMAGE_MARKER':
d:/github/allgui/hwgui/source/winapi/freeimg.c:508:52: warning: cast between incompatible function types from 'FREEIMAGE_GETIMAGETYPE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC ) pGetImageType,
                                                    ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:508:10: warning: cast between incompatible function types from 'FARPROC' to 'short int (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC ) pGetImageType,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_FI2DIBEX':
d:/github/allgui/hwgui/source/winapi/freeimg.c:537:53: warning: cast between incompatible function types from 'FREEIMAGE_GETINFOHEADER' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETINFOHEADER ) s_getFunction( ( FARPROC ) pGetinfoHead,
                                                     ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:537:10: warning: cast between incompatible function types from 'FARPROC' to 'BITMAPINFOHEADER * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETINFOHEADER ) s_getFunction( ( FARPROC ) pGetinfoHead,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:540:47: warning: cast between incompatible function types from 'FREEIMAGE_GETINFO' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:540:10: warning: cast between incompatible function types from 'FARPROC' to 'BITMAPINFO * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:543:47: warning: cast between incompatible function types from 'FREEIMAGE_GETBITS' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:543:10: warning: cast between incompatible function types from 'FARPROC' to 'BYTE * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:546:50: warning: cast between incompatible function types from 'FREEIMAGE_GETPALETTE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETPALETTE ) s_getFunction( ( FARPROC ) pGetPalette,
                                                  ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:546:10: warning: cast between incompatible function types from 'FARPROC' to 'RGBQUAD * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETPALETTE ) s_getFunction( ( FARPROC ) pGetPalette,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:549:52: warning: cast between incompatible function types from 'FREEIMAGE_GETIMAGETYPE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC ) pGetImageType,
                                                    ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:549:10: warning: cast between incompatible function types from 'FARPROC' to 'short int (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC ) pGetImageType,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_DRAW':
d:/github/allgui/hwgui/source/winapi/freeimg.c:630:47: warning: cast between incompatible function types from 'FREEIMAGE_GETBITS' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:630:10: warning: cast between incompatible function types from 'FARPROC' to 'BYTE * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:633:47: warning: cast between incompatible function types from 'FREEIMAGE_GETINFO' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:633:10: warning: cast between incompatible function types from 'FARPROC' to 'BITMAPINFO * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_BMP2FI':
d:/github/allgui/hwgui/source/winapi/freeimg.c:655:51: warning: cast between incompatible function types from 'FREEIMAGE_ALLOCATE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
             ( FREEIMAGE_ALLOCATE ) s_getFunction( ( FARPROC ) pAllocate,
                                                   ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:655:13: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(int,  int,  int,  unsigned int,  unsigned int,  unsigned int)' [-Wcast-function-type]
             ( FREEIMAGE_ALLOCATE ) s_getFunction( ( FARPROC ) pAllocate,
             ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:658:50: warning: cast between incompatible function types from 'FREEIMAGE_GETBITS' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
             ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
                                                  ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:658:13: warning: cast between incompatible function types from 'FARPROC' to 'BYTE * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
             ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
             ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:661:50: warning: cast between incompatible function types from 'FREEIMAGE_GETINFO' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
             ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
                                                  ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:661:13: warning: cast between incompatible function types from 'FARPROC' to 'BITMAPINFO * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
             ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
             ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_DIB2FI':
d:/github/allgui/hwgui/source/winapi/freeimg.c:735:61: warning: cast between incompatible function types from 'FREEIMAGE_CONVERTFROMRAWBITS' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
             ( FREEIMAGE_CONVERTFROMRAWBITS ) s_getFunction( ( FARPROC )
                                                             ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:735:13: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(BYTE *, int,  int,  int,  unsigned int,  unsigned int,  unsigned int,  unsigned int,  BOOL)' [-Wcast-function-type]
             ( FREEIMAGE_CONVERTFROMRAWBITS ) s_getFunction( ( FARPROC )
             ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:738:53: warning: cast between incompatible function types from 'FREEIMAGE_GETPALETTE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
             ( FREEIMAGE_GETPALETTE ) s_getFunction( ( FARPROC ) pGetPalette,
                                                     ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:738:13: warning: cast between incompatible function types from 'FARPROC' to 'RGBQUAD * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
             ( FREEIMAGE_GETPALETTE ) s_getFunction( ( FARPROC ) pGetPalette,
             ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_RESCALE':
d:/github/allgui/hwgui/source/winapi/freeimg.c:791:47: warning: cast between incompatible function types from 'FREEIMAGE_RESCALE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_RESCALE ) s_getFunction( ( FARPROC ) pRescale,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:791:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FIBITMAP *, int,  int,  FREE_IMAGE_FILTER)' [-Wcast-function-type]
          ( FREEIMAGE_RESCALE ) s_getFunction( ( FARPROC ) pRescale,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_REMOVECHANNEL':
d:/github/allgui/hwgui/source/winapi/freeimg.c:806:48: warning: cast between incompatible function types from 'FREEIMAGE_ALLOCATE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_ALLOCATE ) s_getFunction( ( FARPROC ) pAllocate,
                                                ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:806:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(int,  int,  int,  unsigned int,  unsigned int,  unsigned int)' [-Wcast-function-type]
          ( FREEIMAGE_ALLOCATE ) s_getFunction( ( FARPROC ) pAllocate,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:818:46: warning: cast between incompatible function types from 'FREEIMAGE_UNLOAD' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_UNLOAD ) s_getFunction( ( FARPROC ) pUnload,
                                              ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:818:10: warning: cast between incompatible function types from 'FARPROC' to 'void (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_UNLOAD ) s_getFunction( ( FARPROC ) pUnload,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_LOADFROMMEM':
d:/github/allgui/hwgui/source/winapi/freeimg.c:886:54: warning: cast between incompatible function types from 'FREEIMAGE_LOADFROMHANDLE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_LOADFROMHANDLE ) s_getFunction( ( FARPROC )
                                                      ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:886:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FREE_IMAGE_FORMAT,  FreeImageIO *, void *, int)' [-Wcast-function-type]
          ( FREEIMAGE_LOADFROMHANDLE ) s_getFunction( ( FARPROC )
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_ROTATECLASSIC':
d:/github/allgui/hwgui/source/winapi/freeimg.c:929:53: warning: cast between incompatible function types from 'FREEIMAGE_ROTATECLASSIC' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_ROTATECLASSIC ) s_getFunction( ( FARPROC )
                                                     ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:929:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FIBITMAP *, double)' [-Wcast-function-type]
          ( FREEIMAGE_ROTATECLASSIC ) s_getFunction( ( FARPROC )
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_SETDOTSPERMETERX':
d:/github/allgui/hwgui/source/winapi/freeimg.c:959:56: warning: cast between incompatible function types from 'FREEIMAGE_SETDOTSPERMETERX' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_SETDOTSPERMETERX ) s_getFunction( ( FARPROC )
                                                        ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:959:10: warning: cast between incompatible function types from 'FARPROC' to 'void (__attribute__((stdcall)) *)(FIBITMAP *, unsigned int)' [-Wcast-function-type]
          ( FREEIMAGE_SETDOTSPERMETERX ) s_getFunction( ( FARPROC )
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_SETDOTSPERMETERY':
d:/github/allgui/hwgui/source/winapi/freeimg.c:971:56: warning: cast between incompatible function types from 'FREEIMAGE_SETDOTSPERMETERY' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_SETDOTSPERMETERY ) s_getFunction( ( FARPROC )
                                                        ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:971:10: warning: cast between incompatible function types from 'FARPROC' to 'void (__attribute__((stdcall)) *)(FIBITMAP *, unsigned int)' [-Wcast-function-type]
          ( FREEIMAGE_SETDOTSPERMETERY ) s_getFunction( ( FARPROC )
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_ALLOCATE':
d:/github/allgui/hwgui/source/winapi/freeimg.c:985:48: warning: cast between incompatible function types from 'FREEIMAGE_ALLOCATE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_ALLOCATE ) s_getFunction( ( FARPROC ) pAllocate,
                                                ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:985:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(int,  int,  int,  unsigned int,  unsigned int,  unsigned int)' [-Wcast-function-type]
          ( FREEIMAGE_ALLOCATE ) s_getFunction( ( FARPROC ) pAllocate,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_COPY':
d:/github/allgui/hwgui/source/winapi/freeimg.c:1011:44: warning: cast between incompatible function types from 'FREEIMAGE_COPY' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_COPY ) s_getFunction( ( FARPROC ) pCopy,
                                            ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:1011:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FIBITMAP *, int,  int,  int,  int)' [-Wcast-function-type]
          ( FREEIMAGE_COPY ) s_getFunction( ( FARPROC ) pCopy,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_GETBITS':
d:/github/allgui/hwgui/source/winapi/freeimg.c:1045:47: warning: cast between incompatible function types from 'FREEIMAGE_GETBITS' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:1045:10: warning: cast between incompatible function types from 'FARPROC' to 'BYTE * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_CONVERTTO8BITS':
d:/github/allgui/hwgui/source/winapi/freeimg.c:1054:54: warning: cast between incompatible function types from 'FREEIMAGE_CONVERTTO8BITS' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_CONVERTTO8BITS ) s_getFunction( ( FARPROC )
                                                      ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:1054:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_CONVERTTO8BITS ) s_getFunction( ( FARPROC )
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_CONVERTTOGREYSCALE':
d:/github/allgui/hwgui/source/winapi/freeimg.c:1063:58: warning: cast between incompatible function types from 'FREEIMAGE_CONVERTTOGREYSCALE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_CONVERTTOGREYSCALE ) s_getFunction( ( FARPROC )
                                                          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:1063:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_CONVERTTOGREYSCALE ) s_getFunction( ( FARPROC )
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_THRESHOLD':
d:/github/allgui/hwgui/source/winapi/freeimg.c:1072:49: warning: cast between incompatible function types from 'FREEIMAGE_THRESHOLD' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_THRESHOLD ) s_getFunction( ( FARPROC ) pThreshold,
                                                 ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:1072:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FIBITMAP *, BYTE)' [-Wcast-function-type]
          ( FREEIMAGE_THRESHOLD ) s_getFunction( ( FARPROC ) pThreshold,
          ^
d:/github/allgui/hwgui/contrib/ext_controls/theme.c: In function 'hb_OpenThemeData':
d:/github/allgui/hwgui/contrib/ext_controls/theme.c:709:10: warning: cast between incompatible function types from 'void * (*)(struct HWND__ *, const WCHAR *)' {aka 'void * (*)(struct HWND__ *, const short unsigned int *)'} to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FARPROC ) OpenThemeDataFail );
          ^
d:/github/allgui/hwgui/contrib/ext_controls/theme.c:708:10: warning: cast between incompatible function types from 'FARPROC' to 'void * (__attribute__((stdcall)) *)(struct HWND__ *, const WCHAR *)' [-Wcast-function-type]
          ( PFNOPENTHEMEDATA ) GetProc( "OpenThemeData",
          ^
d:/github/allgui/hwgui/contrib/ext_controls/theme.c: In function 'hb_GetThemeSysColorBrush':
d:/github/allgui/hwgui/contrib/ext_controls/theme.c:994:10: warning: cast between incompatible function types from 'struct HBRUSH__ * (*)(void *, int)' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FARPROC ) GetThemeSysColorBrushFail );
          ^
d:/github/allgui/hwgui/contrib/ext_controls/theme.c:993:10: warning: cast between incompatible function types from 'FARPROC' to 'struct HBRUSH__ * (__attribute__((stdcall)) *)(void *, int)' [-Wcast-function-type]
          ( PFNGETTHEMESYSCOLORBRUSH ) GetProc( "GetThemeSysColorBrush",
          ^
d:/github/allgui/hwgui/contrib/ext_controls/theme.c: In function 'hb_GetWindowTheme':
d:/github/allgui/hwgui/contrib/ext_controls/theme.c:1059:10: warning: cast between incompatible function types from 'void * (*)(struct HWND__ *)' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FARPROC ) GetWindowThemeFail );
          ^
d:/github/allgui/hwgui/contrib/ext_controls/theme.c:1058:10: warning: cast between incompatible function types from 'FARPROC' to 'void * (__attribute__((stdcall)) *)(struct HWND__ *)' [-Wcast-function-type]
          ( PFNGETWINDOWTHEME ) GetProc( "GetWindowTheme",
          ^
d:/github/allgui/hwgui/contrib/ext_controls/theme.c: In function 'hb_SetThemeAppProperties':
d:/github/allgui/hwgui/contrib/ext_controls/theme.c:1092:10: warning: cast between incompatible function types from 'void (*)(DWORD)' {aka 'void (*)(long unsigned int)'} to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FARPROC ) SetThemeAppPropertiesFail );
          ^
d:/github/allgui/hwgui/contrib/ext_controls/theme.c:1091:10: warning: cast between incompatible function types from 'FARPROC' to 'void (__attribute__((stdcall)) *)(DWORD)' [-Wcast-function-type]
          ( PFNSETTHEMEAPPPROPERTIES ) GetProc( "SetThemeAppProperties",
          ^
d:/github/allgui/hwgui/contrib/qhtm/hwg_qhtm.c: In function 'HB_FUN_QHTM_PRINTDESTROYCONTEXT':
d:/github/allgui/hwgui/contrib/qhtm/hwg_qhtm.c:411:13: warning: cast between incompatible function types from 'FARPROC' to 'void (__attribute__((stdcall)) *)(QHTMCONTEXT)' [-Wcast-function-type]
             ( QHTM_PRINTDESTROYCONTEXT ) GetProcAddress( s_hQhtmDll,
             ^
São variáveis de tipos diferentes, onde o uso pode ou não ser válido. Apenas chama a atenção pra revisar o fonte.
Tipo... declarou uma variável com 255 letras, e a outra com 1 letra que se repete 255 vezes.
Para o compilador... ele só sabe que são diferentes, e mostra pra revisar, por precaução.

Provavelmente dá pra desativar essa checagem usando o parâmetro que é apresentado, só pra "esconder" as mensagens de alerta.

Hwgui 2.22 release 1

Enviado: 16 Dez 2018 13:49
por asimoes
Itamar M. Lins Jr. escreveu:Cola o texto usando
Aqui com GCC 7.3 está ok.

Código: Selecionar todos

../../../../contrib/misc/arr2str.c: In function 'ArrayMemoSize':
../../../../contrib/misc/arr2str.c:118:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
             if( HB_DBL_LIM_INT32( dVal ) )
               ^
../../../../contrib/misc/arr2str.c:124:10: note: here
          case HB_IT_DOUBLE:
          ^~~~
../../../../contrib/misc/arr2str.c: In function 'WriteArray':
../../../../contrib/misc/arr2str.c:192:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
             if( HB_DBL_LIM_INT32( dVal ) )
               ^
../../../../contrib/misc/arr2str.c:201:10: note: here
          case HB_IT_DOUBLE:
          ^~~~

Hwgui 2.22 release 1

Enviado: 16 Dez 2018 14:08
por JoséQuintas
Só deu certo para o primeiro

Set CFLAGS=-Wno-implicit-fallthrough -Wno-cast-function-type

Hwgui 2.22 release 1

Enviado: 16 Dez 2018 14:15
por JoséQuintas

Código: Selecionar todos

HBMK2 *.hbp -rebuild hwgui.hbc -m -n -workdir=c:\temp -compr -strip -mt -quiet -q -ge1 -Id:\cdrom\FONTES\build\

d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_VERSION':
d:/github/allgui/hwgui/source/winapi/freeimg.c:230:33: warning: cast between incompatible function types from 'FARPROC' to 'char * (__attribute__((stdcall)) *)(void)' [-Wcast-function-type]
    FREEIMAGE_GETVERSION pFunc = ( FREEIMAGE_GETVERSION ) s_getFunction( NULL,
                                 ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_UNLOAD':
d:/github/allgui/hwgui/source/winapi/freeimg.c:239:46: warning: cast between incompatible function types from 'FREEIMAGE_UNLOAD' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_UNLOAD ) s_getFunction( ( FARPROC ) pUnload,
                                              ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:239:10: warning: cast between incompatible function types from 'FARPROC' to 'void (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_UNLOAD ) s_getFunction( ( FARPROC ) pUnload,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_LOAD':
d:/github/allgui/hwgui/source/winapi/freeimg.c:249:44: warning: cast between incompatible function types from 'FREEIMAGE_LOAD' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_LOAD ) s_getFunction( ( FARPROC ) pLoad,
                                            ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:249:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FREE_IMAGE_FORMAT,  const char *, int)' [-Wcast-function-type]
          ( FREEIMAGE_LOAD ) s_getFunction( ( FARPROC ) pLoad,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_LOADTYPE':
d:/github/allgui/hwgui/source/winapi/freeimg.c:271:44: warning: cast between incompatible function types from 'FREEIMAGE_LOAD' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_LOAD ) s_getFunction( ( FARPROC ) pLoad,
                                            ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:271:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FREE_IMAGE_FORMAT,  const char *, int)' [-Wcast-function-type]
          ( FREEIMAGE_LOAD ) s_getFunction( ( FARPROC ) pLoad,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_GETIMAGETYPE':
d:/github/allgui/hwgui/source/winapi/freeimg.c:355:52: warning: cast between incompatible function types from 'FREEIMAGE_GETIMAGETYPE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC ) pGetImageType,
                                                    ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:355:10: warning: cast between incompatible function types from 'FARPROC' to 'short int (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC ) pGetImageType,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_2BITMAP':
d:/github/allgui/hwgui/source/winapi/freeimg.c:368:47: warning: cast between incompatible function types from 'FREEIMAGE_GETBITS' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:368:10: warning: cast between incompatible function types from 'FARPROC' to 'BYTE * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:371:47: warning: cast between incompatible function types from 'FREEIMAGE_GETINFO' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:371:10: warning: cast between incompatible function types from 'FARPROC' to 'BITMAPINFO * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:374:53: warning: cast between incompatible function types from 'FREEIMAGE_GETINFOHEADER' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETINFOHEADER ) s_getFunction( ( FARPROC ) pGetinfoHead,
                                                     ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:374:10: warning: cast between incompatible function types from 'FARPROC' to 'BITMAPINFOHEADER * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETINFOHEADER ) s_getFunction( ( FARPROC ) pGetinfoHead,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_FI2DIB':
d:/github/allgui/hwgui/source/winapi/freeimg.c:480:47: warning: cast between incompatible function types from 'FREEIMAGE_GETBITS' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:480:10: warning: cast between incompatible function types from 'FARPROC' to 'BYTE * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'SET_FREEIMAGE_MARKER':
d:/github/allgui/hwgui/source/winapi/freeimg.c:508:52: warning: cast between incompatible function types from 'FREEIMAGE_GETIMAGETYPE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC ) pGetImageType,
                                                    ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:508:10: warning: cast between incompatible function types from 'FARPROC' to 'short int (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC ) pGetImageType,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_FI2DIBEX':
d:/github/allgui/hwgui/source/winapi/freeimg.c:537:53: warning: cast between incompatible function types from 'FREEIMAGE_GETINFOHEADER' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETINFOHEADER ) s_getFunction( ( FARPROC ) pGetinfoHead,
                                                     ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:537:10: warning: cast between incompatible function types from 'FARPROC' to 'BITMAPINFOHEADER * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETINFOHEADER ) s_getFunction( ( FARPROC ) pGetinfoHead,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:540:47: warning: cast between incompatible function types from 'FREEIMAGE_GETINFO' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:540:10: warning: cast between incompatible function types from 'FARPROC' to 'BITMAPINFO * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:543:47: warning: cast between incompatible function types from 'FREEIMAGE_GETBITS' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:543:10: warning: cast between incompatible function types from 'FARPROC' to 'BYTE * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:546:50: warning: cast between incompatible function types from 'FREEIMAGE_GETPALETTE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETPALETTE ) s_getFunction( ( FARPROC ) pGetPalette,
                                                  ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:546:10: warning: cast between incompatible function types from 'FARPROC' to 'RGBQUAD * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETPALETTE ) s_getFunction( ( FARPROC ) pGetPalette,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:549:52: warning: cast between incompatible function types from 'FREEIMAGE_GETIMAGETYPE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC ) pGetImageType,
                                                    ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:549:10: warning: cast between incompatible function types from 'FARPROC' to 'short int (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETIMAGETYPE ) s_getFunction( ( FARPROC ) pGetImageType,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_DRAW':
d:/github/allgui/hwgui/source/winapi/freeimg.c:630:47: warning: cast between incompatible function types from 'FREEIMAGE_GETBITS' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:630:10: warning: cast between incompatible function types from 'FARPROC' to 'BYTE * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:633:47: warning: cast between incompatible function types from 'FREEIMAGE_GETINFO' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:633:10: warning: cast between incompatible function types from 'FARPROC' to 'BITMAPINFO * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_BMP2FI':
d:/github/allgui/hwgui/source/winapi/freeimg.c:655:51: warning: cast between incompatible function types from 'FREEIMAGE_ALLOCATE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
             ( FREEIMAGE_ALLOCATE ) s_getFunction( ( FARPROC ) pAllocate,
                                                   ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:655:13: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(int,  int,  int,  unsigned int,  unsigned int,  unsigned int)' [-Wcast-function-type]
             ( FREEIMAGE_ALLOCATE ) s_getFunction( ( FARPROC ) pAllocate,
             ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:658:50: warning: cast between incompatible function types from 'FREEIMAGE_GETBITS' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
             ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
                                                  ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:658:13: warning: cast between incompatible function types from 'FARPROC' to 'BYTE * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
             ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
             ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:661:50: warning: cast between incompatible function types from 'FREEIMAGE_GETINFO' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
             ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
                                                  ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:661:13: warning: cast between incompatible function types from 'FARPROC' to 'BITMAPINFO * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
             ( FREEIMAGE_GETINFO ) s_getFunction( ( FARPROC ) pGetinfo,
             ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_DIB2FI':
d:/github/allgui/hwgui/source/winapi/freeimg.c:735:61: warning: cast between incompatible function types from 'FREEIMAGE_CONVERTFROMRAWBITS' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
             ( FREEIMAGE_CONVERTFROMRAWBITS ) s_getFunction( ( FARPROC )
                                                             ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:735:13: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(BYTE *, int,  int,  int,  unsigned int,  unsigned int,  unsigned int,  unsigned int,  BOOL)' [-Wcast-function-type]
             ( FREEIMAGE_CONVERTFROMRAWBITS ) s_getFunction( ( FARPROC )
             ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:738:53: warning: cast between incompatible function types from 'FREEIMAGE_GETPALETTE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
             ( FREEIMAGE_GETPALETTE ) s_getFunction( ( FARPROC ) pGetPalette,
                                                     ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:738:13: warning: cast between incompatible function types from 'FARPROC' to 'RGBQUAD * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
             ( FREEIMAGE_GETPALETTE ) s_getFunction( ( FARPROC ) pGetPalette,
             ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_RESCALE':
d:/github/allgui/hwgui/source/winapi/freeimg.c:791:47: warning: cast between incompatible function types from 'FREEIMAGE_RESCALE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_RESCALE ) s_getFunction( ( FARPROC ) pRescale,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:791:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FIBITMAP *, int,  int,  FREE_IMAGE_FILTER)' [-Wcast-function-type]
          ( FREEIMAGE_RESCALE ) s_getFunction( ( FARPROC ) pRescale,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_REMOVECHANNEL':
d:/github/allgui/hwgui/source/winapi/freeimg.c:806:48: warning: cast between incompatible function types from 'FREEIMAGE_ALLOCATE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_ALLOCATE ) s_getFunction( ( FARPROC ) pAllocate,
                                                ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:806:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(int,  int,  int,  unsigned int,  unsigned int,  unsigned int)' [-Wcast-function-type]
          ( FREEIMAGE_ALLOCATE ) s_getFunction( ( FARPROC ) pAllocate,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:818:46: warning: cast between incompatible function types from 'FREEIMAGE_UNLOAD' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_UNLOAD ) s_getFunction( ( FARPROC ) pUnload,
                                              ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:818:10: warning: cast between incompatible function types from 'FARPROC' to 'void (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_UNLOAD ) s_getFunction( ( FARPROC ) pUnload,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_LOADFROMMEM':
d:/github/allgui/hwgui/source/winapi/freeimg.c:886:54: warning: cast between incompatible function types from 'FREEIMAGE_LOADFROMHANDLE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_LOADFROMHANDLE ) s_getFunction( ( FARPROC )
                                                      ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:886:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FREE_IMAGE_FORMAT,  FreeImageIO *, void *, int)' [-Wcast-function-type]
          ( FREEIMAGE_LOADFROMHANDLE ) s_getFunction( ( FARPROC )
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_ROTATECLASSIC':
d:/github/allgui/hwgui/source/winapi/freeimg.c:929:53: warning: cast between incompatible function types from 'FREEIMAGE_ROTATECLASSIC' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_ROTATECLASSIC ) s_getFunction( ( FARPROC )
                                                     ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:929:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FIBITMAP *, double)' [-Wcast-function-type]
          ( FREEIMAGE_ROTATECLASSIC ) s_getFunction( ( FARPROC )
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_SETDOTSPERMETERX':
d:/github/allgui/hwgui/source/winapi/freeimg.c:959:56: warning: cast between incompatible function types from 'FREEIMAGE_SETDOTSPERMETERX' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_SETDOTSPERMETERX ) s_getFunction( ( FARPROC )
                                                        ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:959:10: warning: cast between incompatible function types from 'FARPROC' to 'void (__attribute__((stdcall)) *)(FIBITMAP *, unsigned int)' [-Wcast-function-type]
          ( FREEIMAGE_SETDOTSPERMETERX ) s_getFunction( ( FARPROC )
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_SETDOTSPERMETERY':
d:/github/allgui/hwgui/source/winapi/freeimg.c:971:56: warning: cast between incompatible function types from 'FREEIMAGE_SETDOTSPERMETERY' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_SETDOTSPERMETERY ) s_getFunction( ( FARPROC )
                                                        ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:971:10: warning: cast between incompatible function types from 'FARPROC' to 'void (__attribute__((stdcall)) *)(FIBITMAP *, unsigned int)' [-Wcast-function-type]
          ( FREEIMAGE_SETDOTSPERMETERY ) s_getFunction( ( FARPROC )
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_ALLOCATE':
d:/github/allgui/hwgui/source/winapi/freeimg.c:985:48: warning: cast between incompatible function types from 'FREEIMAGE_ALLOCATE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_ALLOCATE ) s_getFunction( ( FARPROC ) pAllocate,
                                                ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:985:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(int,  int,  int,  unsigned int,  unsigned int,  unsigned int)' [-Wcast-function-type]
          ( FREEIMAGE_ALLOCATE ) s_getFunction( ( FARPROC ) pAllocate,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_COPY':
d:/github/allgui/hwgui/source/winapi/freeimg.c:1011:44: warning: cast between incompatible function types from 'FREEIMAGE_COPY' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_COPY ) s_getFunction( ( FARPROC ) pCopy,
                                            ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:1011:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FIBITMAP *, int,  int,  int,  int)' [-Wcast-function-type]
          ( FREEIMAGE_COPY ) s_getFunction( ( FARPROC ) pCopy,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_GETBITS':
d:/github/allgui/hwgui/source/winapi/freeimg.c:1045:47: warning: cast between incompatible function types from 'FREEIMAGE_GETBITS' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
                                               ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:1045:10: warning: cast between incompatible function types from 'FARPROC' to 'BYTE * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_GETBITS ) s_getFunction( ( FARPROC ) pGetbits,
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_CONVERTTO8BITS':
d:/github/allgui/hwgui/source/winapi/freeimg.c:1054:54: warning: cast between incompatible function types from 'FREEIMAGE_CONVERTTO8BITS' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_CONVERTTO8BITS ) s_getFunction( ( FARPROC )
                                                      ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:1054:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_CONVERTTO8BITS ) s_getFunction( ( FARPROC )
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_CONVERTTOGREYSCALE':
d:/github/allgui/hwgui/source/winapi/freeimg.c:1063:58: warning: cast between incompatible function types from 'FREEIMAGE_CONVERTTOGREYSCALE' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_CONVERTTOGREYSCALE ) s_getFunction( ( FARPROC )
                                                          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:1063:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FIBITMAP *)' [-Wcast-function-type]
          ( FREEIMAGE_CONVERTTOGREYSCALE ) s_getFunction( ( FARPROC )
          ^
d:/github/allgui/hwgui/source/winapi/freeimg.c: In function 'HB_FUN_HWG_FI_THRESHOLD':
d:/github/allgui/hwgui/source/winapi/freeimg.c:1072:49: warning: cast between incompatible function types from 'FREEIMAGE_THRESHOLD' to 'int (__attribute__((stdcall)) *)()' [-Wcast-function-type]
          ( FREEIMAGE_THRESHOLD ) s_getFunction( ( FARPROC ) pThreshold,
                                                 ^
d:/github/allgui/hwgui/source/winapi/freeimg.c:1072:10: warning: cast between incompatible function types from 'FARPROC' to 'FIBITMAP * (__attribute__((stdcall)) *)(FIBITMAP *, BYTE)' [-Wcast-function-type]
          ( FREEIMAGE_THRESHOLD ) s_getFunction( ( FARPROC ) pThreshold,
          ^
os alertas de implicit-fallthrough foram eliminados, mas continuam os de cast-function-type

Hwgui 2.22 release 1

Enviado: 16 Dez 2018 14:20
por JoséQuintas
Uia... meu novo HBMK.HBC... atenção especial à última linha.
mt=yes
gui=yes
strip=yes
compr=yes
libpaths=d:/cdrom/fontes/integra/sefazclass
libpaths=d:/cdrom/fontes/integra/josequintas
libpaths=d:/cdrom/fontes/integra/josequintas/bostaurus
libpaths=d:/github/allgui/hmg3
libpaths=d:/github/allgui/hmge
libpaths=d:/github/allgui/hwgui
libpaths=d:/github/allgui/oohg
CFLAGS=-Wno-implicit-fallthrough -Wno-cast-function-type

Hwgui 2.22 release 1

Enviado: 16 Dez 2018 14:25
por JoséQuintas
Só não me perguntem porque configurando dentro do HBC deu certo, e fora não, porque não faço idéia...
hwgui.png

Hwgui 2.22 release 1

Enviado: 16 Dez 2018 14:33
por JoséQuintas
Agora o processo completo.
Apaguei toda pasta Harbour\add-ons\hwgui antes de começar.
É a geração da hwgui partindo do zero, usando meus arquivos:
hwgui.png
A geração, e o resultado da geração com os HBX(*.hbx) e as LIBs (*.a)

Hwgui 2.22 release 1

Enviado: 16 Dez 2018 19:44
por Itamar M. Lins Jr.
Ola!
Enviei a mensagem e convidei ele para ver essa conversa específica do José Quintas neste forum aqui.
https://sourceforge.net/p/hwgui/mailman ... /36495255/

Saudações,
Itamar M. Lins Jr.

Hwgui 2.22 release 1

Enviado: 16 Dez 2018 20:12
por JoséQuintas
Bom.

Hwgui 2.22 release 1

Enviado: 16 Dez 2018 20:25
por asimoes
Quintas,

Segui a tua dica colocando a instrução CFLAGS=-Wno-implicit-fallthrough -Wno-cast-function-type no hwgui.hbc, compilou a lib sem os "warnings"

Hwgui 2.22 release 1

Enviado: 16 Dez 2018 20:58
por JoséQuintas
Também pode criar um hbmk.hbc contendo isso, assim já faz o mesmo com outras LIBs.

Pode ser interessante indicar que é só pra mingw, mas não sei se em versões anteriores poderia gerar erro.

{mingw}CFLAGS=-Wno-implicit-fallthrough -Wno-cast-function-type

Nota: o meu hbmk.hbc faço backup. Tenho uma pasta \config aonde salvo muitos defaults por precaução.

Hwgui 2.22 release 1

Enviado: 17 Dez 2018 08:56
por Alexander S.Kresin
Ola!

I've fixed the contrib/misc/arr2str.c to discard those warnings (this statement may
fall through [-Wimplicit-fallthrough) - probably, it will work.
I couldn't reproduce them, though, but the reason was clear.

Regards, Alexander.

Hwgui 2.22 release 1

Enviado: 17 Dez 2018 09:56
por alxsts
Olá!

Bem-vindo ao Fórum sr. Kresin!

Muito obrigado por todos os seus esforços e contribuição com HwGUI!.

Como sabemos, alguns membros utilizam e continuam a testar as novas características do produto.

.~.~.~.~.~.~.~.~.~.~~..

Welcome to this forum Mr. Kresin!

Thank you very much for all your effort and contribution on creating and developing HwGui.

As we know, some forum members are HwGUI users and are continuously testing new features,

Regards.