-----Messaggio Originale----- 
Da: "Patrick Mast, xHarbour.com" <[EMAIL PROTECTED]>
A: "Enrico Maria Giordano" <[EMAIL PROTECTED]>
Cc: "Xharbour-Developers" <xharbour-developers@lists.sourceforge.net>
Data invio: giovedì 10 aprile 2008 9.32
Oggetto: Re: [xHarbour-developers] Warnings


> Hey Enrico,
>
> > Dear friends, there are still many warnings in latest xHarbour from CVS 
> > like
> >  source\rtl\getsys.prg(371) Warning W0003  Variable: 'XDUMMY' declared 
> > but
> >  not used in function: 'RANGECHECK(329)'
> >  Do you think it's worth to fix them? If yes, I could do it.
>
> Yes, I think so. I always compile my code with -w2 and make sure all
> warnings are fixed. Cleaner code is better code, no? ;-)
>
> Thanks for the fixes Enrico.

Unfortunately the warnings seem to be related to unused parameters in 
PRG-level functions and I can't remove them because they are part of the 
function interface. I don't think it is worth to add

xParam = xParam

all over the place just to fix the warnings. I prefer to locally disable 
that kind of warning using a compiler switch.

Anybody knows a better way?

EMG

--
EMAG Software Homepage:     http://www.emagsoftware.it
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg
The EMG Music page:         http://www.emagsoftware.it/emgmusic 


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to