From c7e604aca96761bbeb407f2186e7c991a8be05f1 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 26 Jun 2009 09:30:00 +0000 Subject: [PATCH] 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 *' --- harbour/ChangeLog | 13 +++++++++++++ harbour/contrib/hbgd/gdwrp.c | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 40fc135e3b..daafe7623f 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -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 diff --git a/harbour/contrib/hbgd/gdwrp.c b/harbour/contrib/hbgd/gdwrp.c index 148bb826f6..71ef9904ce 100644 --- a/harbour/contrib/hbgd/gdwrp.c +++ b/harbour/contrib/hbgd/gdwrp.c @@ -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);