Boa tarde, instalei a Versão HMG.3.5
As Versão atuais são:
A HMG-IDE ver 1.2a?
MiniGuiHMG 3.4.4?
O Harbour 3.2.0dev (r2011030937)?
Eu usava Harbour 3.2.0dev (r1703241902) Normal.
Quando compilo com a nova versão passou a dar estes erros, como posso resolver?
hbmk2: Harbour: Compilando m¢dulos...
Harbour 3.2.0dev (r2011030937)
Copyright (c) 1999-2020,
https://harbour.github.io/
hbmk2: Compilando...
C:\Sistema\2022\funcoes_c.prg: In function 'HB_FUN_ENUMPRINTERS':
C:\Sistema\2022\funcoes_c.prg:48:18: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign]
48 | strcat(Result,pPrinterEnum4->pPrinterName) ;
| ^~~~~~
| |
| UCHAR * {aka unsigned char *}
In file included from C:/HMG.3.5/harbour/include/hbdefs.h:53,
from C:/HMG.3.5/harbour/include/hbvmpub.h:50,
from ../../../.hbmk/win/mingw/funcoes_c.c:7:
c:\hmg.3.5\mingw\i686-w64-mingw32\include\string.h:62:18: note: expected 'char * restrict' but argument is of type 'UCHAR *' {aka 'unsigned char *'}
62 | char * __cdecl strcat(char * __restrict__ _Dest,const char * __restrict__ _Source);
| ^~~~~~
C:\Sistema\2022\funcoes_c.prg:49:18: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign]
49 | strcat(Result,";") ;
| ^~~~~~
| |
| UCHAR * {aka unsigned char *}
In file included from C:/HMG.3.5/harbour/include/hbdefs.h:53,
from C:/HMG.3.5/harbour/include/hbvmpub.h:50,
from ../../../.hbmk/win/mingw/funcoes_c.c:7:
c:\hmg.3.5\mingw\i686-w64-mingw32\include\string.h:62:18: note: expected 'char * restrict' but argument is of type 'UCHAR *' {aka 'unsigned char *'}
62 | char * __cdecl strcat(char * __restrict__ _Dest,const char * __restrict__ _Source);
| ^~~~~~
C:\Sistema\2022\funcoes_c.prg:52:15: warning: pointer targets in passing argument 1 of 'hb_retc' differ in signedness [-Wpointer-sign]
52 | hb_retc(Result) ;
| ^~~~~~
| |
| UCHAR * {aka unsigned char *}
In file included from C:\Sistema\2022\funcoes_c.prg:8:
C:/HMG.3.5/harbour/include/hbapi.h:687:47: note: expected 'const char *' but argument is of type 'UCHAR *' {aka 'unsigned char *'}
687 | extern HB_EXPORT void hb_retc( const char * szText ); /* returns a string */
| ~~~~~~~~~~~~~^~~~~~
C:\Sistema\2022\funcoes_c.prg:72:18: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign]
72 | strcat(Result,pPrinterEnum->pPrinterName) ;
| ^~~~~~
| |
| UCHAR * {aka unsigned char *}
In file included from C:/HMG.3.5/harbour/include/hbdefs.h:53,
from C:/HMG.3.5/harbour/include/hbvmpub.h:50,
from ../../../.hbmk/win/mingw/funcoes_c.c:7:
c:\hmg.3.5\mingw\i686-w64-mingw32\include\string.h:62:18: note: expected 'char * restrict' but argument is of type 'UCHAR *' {aka 'unsigned char *'}
62 | char * __cdecl strcat(char * __restrict__ _Dest,const char * __restrict__ _Source);
| ^~~~~~
C:\Sistema\2022\funcoes_c.prg:73:18: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign]
73 | strcat(Result,";") ;
| ^~~~~~
| |
| UCHAR * {aka unsigned char *}
In file included from C:/HMG.3.5/harbour/include/hbdefs.h:53,
from C:/HMG.3.5/harbour/include/hbvmpub.h:50,
from ../../../.hbmk/win/mingw/funcoes_c.c:7:
c:\hmg.3.5\mingw\i686-w64-mingw32\include\string.h:62:18: note: expected 'char * restrict' but argument is of type 'UCHAR *' {aka 'unsigned char *'}
62 | char * __cdecl strcat(char * __restrict__ _Dest,const char * __restrict__ _Source);
| ^~~~~~
C:\Sistema\2022\funcoes_c.prg:76:15: warning: pointer targets in passing argument 1 of 'hb_retc' differ in signedness [-Wpointer-sign]
76 | hb_retc(Result) ;
| ^~~~~~
| |
| UCHAR * {aka unsigned char *}
In file included from C:\Sistema\2022\funcoes_c.prg:8:
C:/HMG.3.5/harbour/include/hbapi.h:687:47: note: expected 'const char *' but argument is of type 'UCHAR *' {aka 'unsigned char *'}
687 | extern HB_EXPORT void hb_retc( const char * szText ); /* returns a string */
| ~~~~~~~~~~~~~^~~~~~
C:\Sistema\2022\funcoes_c.prg: In function 'HB_FUN_WINDEFAULTPRINTER':
C:\Sistema\2022\funcoes_c.prg:89:46: warning: pointer targets in passing argument 4 of 'GetProfileStringA' differ in signedness [-Wpointer-sign]
89 | x = GetProfileString("windows","device","",lpReturnedString,MAX_FILE_NAME-1);
| ^~~~~~~~~~~~~~~~
| |
| UCHAR * {aka unsigned char *}
In file included from c:\hmg.3.5\mingw\i686-w64-mingw32\include\windows.h:70,
from C:\Sistema\2022\funcoes_c.prg:7:
c:\hmg.3.5\mingw\i686-w64-mingw32\include\winbase.h

106: note: expected 'LPSTR' {aka 'char *'} but argument is of type 'UCHAR *' {aka 'unsigned char *'}
1800 | WINBASEAPI DWORD WINAPI GetProfileStringA (LPCSTR lpAppName, LPCSTR lpKeyName, LPCSTR lpDefault, LPSTR lpReturnedString, DWORD nSize);
| ~~~~~~^~~~~~~~~~~~~~~~
C:\Sistema\2022\funcoes_c.prg:93:14: warning: pointer targets in passing argument 1 of 'hb_retclen' differ in signedness [-Wpointer-sign]
93 | hb_retclen(lpReturnedString,y) ;
| ^~~~~~~~~~~~~~~~
| |
| UCHAR * {aka unsigned char *}
In file included from C:\Sistema\2022\funcoes_c.prg:8:
C:/HMG.3.5/harbour/include/hbapi.h:691:50: note: expected 'const char *' but argument is of type 'UCHAR *' {aka 'unsigned char *'}
691 | extern HB_EXPORT void hb_retclen( const char * szText, HB_SIZE nLen ); /* returns a string with a specific length */
| ~~~~~~~~~~~~~^~~~~~
C:\Sistema\2022\funcoes_c.prg: In function 'HB_FUN_PRINTFILERAW':
C:\Sistema\2022\funcoes_c.prg:106:22: warning: pointer targets in passing argument 1 of 'OpenPrinterA' differ in signedness [-Wpointer-sign]
106 | if ( OpenPrinter(cPrinterName, &hPrinter, NULL) != 0 )
| ^~~~~~~~~~~~
| |
| UCHAR * {aka unsigned char *}
In file included from c:\hmg.3.5\mingw\i686-w64-mingw32\include\windows.h:102,
from C:\Sistema\2022\funcoes_c.prg:7:
c:\hmg.3.5\mingw\i686-w64-mingw32\include\winspool.h:863:37: note: expected 'LPSTR' {aka 'char *'} but argument is of type 'UCHAR *' {aka 'unsigned char *'}
863 | WINBOOL WINAPI OpenPrinterA(LPSTR pPrinterName,LPHANDLE phPrinter,LPPRINTER_DEFAULTSA pDefault);
| ~~~~~~^~~~~~~~~~~~
C:\Sistema\2022\funcoes_c.prg:108:24: warning: pointer targets in assignment from 'UCHAR *' {aka 'unsigned char *'} to 'LPSTR' {aka 'char *'} differ in signedness [-Wpointer-sign]
108 | DocInfo.pDocName = (UCHAR*)hb_parc(3) ;
| ^
C:\Sistema\2022\funcoes_c.prg:111:39: warning: pointer targets in passing argument 3 of 'StartDocPrinterA' differ in signedness [-Wpointer-sign]
111 | if ( StartDocPrinter(hPrinter,1,(char *) &DocInfo) != 0 )
| ^~~~~~~~~~~~~~~~~
| |
| char *
In file included from c:\hmg.3.5\mingw\i686-w64-mingw32\include\windows.h:102,
from C:\Sistema\2022\funcoes_c.prg:7:
c:\hmg.3.5\mingw\i686-w64-mingw32\include\winspool.h:904:68: note: expected 'LPBYTE' {aka 'unsigned char *'} but argument is of type 'char *'
904 | DWORD WINAPI StartDocPrinterA(HANDLE hPrinter,DWORD Level,LPBYTE pDocInfo);
| ~~~~~~~^~~~~~~~
C:\Sistema\2022\funcoes_c.prg:115:30: warning: pointer targets in passing argument 1 of 'CreateFileA' differ in signedness [-Wpointer-sign]
115 | hFile = CreateFile(cFileName,GENERIC_READ,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL) ;
| ^~~~~~~~~
| |
| UCHAR * {aka unsigned char *}
In file included from c:\hmg.3.5\mingw\i686-w64-mingw32\include\winbase.h:18,
from c:\hmg.3.5\mingw\i686-w64-mingw32\include\windows.h:70,
from C:\Sistema\2022\funcoes_c.prg:7:
c:\hmg.3.5\mingw\i686-w64-mingw32\include\fileapi.h:52:48: note: expected 'LPCSTR' {aka 'const char *'} but argument is of type 'UCHAR *' {aka 'unsigned char *'}
52 | WINBASEAPI HANDLE WINAPI CreateFileA (LPCSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile);
| ~~~~~~~^~~~~~~~~~
C:\Sistema\2022\funcoes_c.prg:98:63: warning: unused variable 'cDocName' [-Wunused-variable]
98 | UCHAR printBuffer[BIG_BUFFER], *cPrinterName, *cFileName, *cDocName ;
| ^~~~~~~~
C:\Sistema\2022\funcoes_c.prg: At top level:
C:\Sistema\2022\funcoes_c.prg:145: warning: ignoring #pragma ENDUMP [-Wunknown-pragmas]
145 | #pragma ENDUMP
|
Obrigado.