Revision: 11539 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=11539&view=rev Author: vszakats Date: 2009-06-26 10:51:04 +0000 (Fri, 26 Jun 2009)
Log Message: ----------- 2009-06-25 12:47 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbct/ascpos.c * contrib/hbct/ctwfunc.c * contrib/hbct/ctcrypt.c * contrib/xhb/filestat.c * contrib/hbsqlit3/hbsqlit3.c * contrib/hbnf/fttext.c * contrib/hbpgsql/postgres.c * contrib/hbfimage/fi_wrp.c * contrib/hbgd/gdwrp.c * source/rtl/mouse53.c * 'const' cleanup. ; NOTE: I rather didn't commit BYTE to char in CTWIN. ; TOFIX: Some of these will result in warnings when passing values to external API calls. I'd like to ask developers to review what the intent was. Sometimes external API declarations are missing 'const', so it's safe to pass them these buffers, but it should be checked in documentation. --- ../../fi_wrp.c: In function 'HB_FUN_FI_LOADFROMMEM': ../../fi_wrp.c:372: warning: passing argument 1 of 'FreeImage_OpenMemory' discards qualifiers from pointer target type C:\devl\FreeImage-3.12.0\Dist/FreeImage.h:771: note: expected 'BYTE *' but argument is of type 'const BYTE *' ../../fi_wrp.c: In function 'HB_FUN_FI_GETFILETYPEFROMMEM': ../../fi_wrp.c:887: warning: passing argument 1 of 'FreeImage_OpenMemory' discards qualifiers from pointer target type C:\devl\FreeImage-3.12.0\Dist/FreeImage.h:771: note: expected 'BYTE *' but argument is of type 'const BYTE *' ../../gdwrp.c: In function 'HB_FUN_GDIMAGESTRINGFTEX': ../../gdwrp.c:2718: warning: passing argument 4 of 'gdImageStringFTEx' discards qualifiers from pointer target type C:\devl\gd-2.0.34\include/gd.h:459: note: expected 'char *' but argument is of type 'const char *' ../../gdwrp.c:2718: warning: passing argument 9 of 'gdImageStringFTEx' discards qualifiers from pointer target type C:\devl\gd-2.0.34\include/gd.h:459: note: expected 'char *' but argument is of type 'const char *' ../../gdwrp.c: In function 'HB_FUN_GDIMAGESTRINGFTCIRCLE': ../../gdwrp.c:2809: warning: passing argument 7 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 *' ../../gdwrp.c:2809: warning: passing argument 9 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 *' ../../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 *' --- Modified Paths: -------------- trunk/harbour/ChangeLog trunk/harbour/contrib/hbct/ascpos.c trunk/harbour/contrib/hbct/ctcrypt.c trunk/harbour/contrib/hbct/ctwfunc.c trunk/harbour/contrib/hbfimage/fi_wrp.c trunk/harbour/contrib/hbgd/gdwrp.c trunk/harbour/contrib/hbnf/fttext.c trunk/harbour/contrib/hbpgsql/postgres.c trunk/harbour/contrib/hbsqlit3/hbsqlit3.c trunk/harbour/contrib/xhb/filestat.c trunk/harbour/source/rtl/mouse53.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour