I was holding these back, because it seems better to fix hb_par*() (and
other involved API) call parameter list to actually use the 'const'
modifier.

Got no opinion on that e-mail yet.

Brgds,
Viktor

On Wed, Jun 24, 2009 at 5:39 PM, Xavi <jara...@gmail.com> wrote:

> Uff, with g++ (TDM-1 mingw32) 4.4.0
> Set HB_USER_CFLAGS=-fno-strict-aliasing
> :)
>
> <--- source/vm/maindllp.c (429) --->
>   return (char*)"";
> <---------------------------------->
> <--- source/vm/maindllp.c (454) --->
>   return (char*)"";
> <---------------------------------->
> <--- contrib/hbct/ctnet.c (177) --->
> HB_FUNC( NETPRINTER )
> {
>   const char * cPrn = hb_setGetCPtr( HB_SET_PRINTFILE );   /* query default
> local printer port. */
>
>   if( !cPrn || !*cPrn || hb_stricmp( cPrn, "PRN" ) == 0 )
>      cPrn = "LPT1";
>   hb_retl( hb_IsNetShared( (LPSTR)cPrn ) );
> }
> <---------------------------------->
> <--- contrib/hbct/print.c (204) --->
>   char * szPort = (char*)"lpt1";
>   char * szChr = (char*)" ";
> <---------------------------------->
>
> Placing and removing the flag HB_BUILD_MODE=cpp I don't have warning,
> please test.
>
> --
> Xavi
>
>
> _______________________________________________
> Harbour mailing list
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to