2009-06-25 11:29 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* contrib/hbgd/gdwrp.c
    ! Fixed const warnings.
    * TOFIX: Remaining:
       ../../gdwrp.c: In function 'HB_FUN_GDIMAGESTRINGFTEX':
       ../../gdwrp.c:2659: warning: assignment discards qualifiers from pointer target type
       ../../gdwrp.c:2676: warning: assignment discards qualifiers from pointer target type
       ../../gdwrp.c: In function 'HB_FUN_GDIMAGESTRINGFTCIRCLE':
       ../../gdwrp.c:2794: warning: assignment discards qualifiers from pointer target type
       ../../gdwrp.c:2800: warning: assignment discards qualifiers from pointer target type
       ../../gdwrp.c:2809: warning: passing argument 10 of 'gdImageStringFTCircle' discards qualifiers from pointer target type
       C:\devl\gd-2.0.34\include/gdfx.h:41: note: expected 'char *' but argument is of type 'const char *'
This commit is contained in:
Viktor Szakats
2009-06-26 09:30:00 +00:00
parent 39bd143736
commit c7e604aca9
2 changed files with 16 additions and 3 deletions

View File

@@ -17,6 +17,19 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-06-25 11:29 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbgd/gdwrp.c
! Fixed const warnings.
* TOFIX: Remaining:
../../gdwrp.c: In function 'HB_FUN_GDIMAGESTRINGFTEX':
../../gdwrp.c:2659: warning: assignment discards qualifiers from pointer target type
../../gdwrp.c:2676: warning: assignment discards qualifiers from pointer target type
../../gdwrp.c: In function 'HB_FUN_GDIMAGESTRINGFTCIRCLE':
../../gdwrp.c:2794: warning: assignment discards qualifiers from pointer target type
../../gdwrp.c:2800: warning: assignment discards qualifiers from pointer target type
../../gdwrp.c:2809: warning: passing argument 10 of 'gdImageStringFTCircle' discards qualifiers from pointer target type
C:\devl\gd-2.0.34\include/gdfx.h:41: note: expected 'char *' but argument is of type 'const char *'
2009-06-26 11:28 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapigt.h
* harbour/source/rtl/gtapi.c

View File

@@ -264,7 +264,7 @@ static void * LoadImageFromFile( const char *szFile, int *sz )
void * iptr;
HB_FHANDLE fhandle;
if( ( fhandle = hb_fsOpen( ( BYTE * ) szFile, FO_READ ) ) != FS_ERROR )
if( ( fhandle = hb_fsOpen( szFile, FO_READ ) ) != FS_ERROR )
{
/* get lenght */
*sz = hb_fsSeek( fhandle, 0, FS_END );
@@ -307,7 +307,7 @@ static void SaveImageToFile( const char *szFile, void *iptr, int sz )
{
HB_FHANDLE fhandle;
if( ( fhandle = hb_fsCreate( ( BYTE * ) szFile, FC_NORMAL ) ) != FS_ERROR )
if( ( fhandle = hb_fsCreate( szFile, FC_NORMAL ) ) != FS_ERROR )
{
/* Write Image */
SaveImageToHandle( fhandle, ( BYTE *) iptr, (ULONG) sz );
@@ -3942,7 +3942,7 @@ static void AddImageToFile( const char *szFile, void *iptr, int sz )
{
HB_FHANDLE fhandle;
if( ( fhandle = hb_fsOpen( ( BYTE * ) szFile, FO_READWRITE ) ) != FS_ERROR )
if( ( fhandle = hb_fsOpen( szFile, FO_READWRITE ) ) != FS_ERROR )
{
/* move to end of file */
hb_fsSeek(fhandle, 0, FS_END);