Hi,

> it would be nice to have multiple parameter support for both C and .PRG 
> version of HB_SYMBOL_UNUSED() macro.
> 
> Sometimes I temporarily need to add dummy a function, or comment large piece 
> of code of a large functions. This make generate "variable defined but not 
> used" warnings and stops compilation. -w*, -es* compiler options are 
> somewhere deep inside make system.
> 
> FUNC f( par1, par2, par3, par4 )
> 
> Writing of :
>   HB_SYMBOL_UNUSED( par1, par2, par3, par4 )
> 
> is much more quick and elegant than:
>   HB_SYMBOL_UNUSED( par1 )
>   HB_SYMBOL_UNUSED( par2 )
>   HB_SYMBOL_UNUSED( par3 )
>   HB_SYMBOL_UNUSED( par4 )

I don't know, I prefer to keep it as simple as it is now.
It's much cleaner to look at and much easier to grep for.

Most importantly HB_SYMBOL_UNUSED() should be an exception 
to be avoided in the first place, so I'm not sure we should 
design it for most comfortable usage.

As for -w3 and -es2, it's a standard in Harbour SVN now.
It's not deep in the make system, it's simply controlled 
by hbmk.hbm files in each (usually 'tests') dir.

You can override it via cmdline option, or #pragma until 
you are in interim development phase.

Brgds,
Viktor

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to