[fpc-devel] RE: Hint: Parameter "sender" not used

Ales Katona ales at chello.sk
Sat Mar 12 16:54:07 CET 2005


Jeff Pohlmeyer  wrote / napĂ­sal (a):

>>This is not a big issue, anyway could we avoid the endless list
>>of such similar hints compiling Lazarus and our program?
>>    
>>
>
>I frequently find a similar annoyance with c library callbacks.
>
>For instance, most gtk functions have a "user_data" parameter that
>is often unused. 
>
>Maybe there could be a procedure directive and/or compiler switch to
>ignore unsused parameter hints on prototyped functions, or perhaps to
>turn this particluar hint off completely? 
>
>Or even a "dummy" function like: Ignore(Sender);
>
>
>
> - Jeff
>
>
>
>
>  
>
I agree. Something to turn of only parameter unused variables checks. 
It's not critical or anything but I think it might be good if it made it 
to 2.0
I'm not sure but doesn't Delphi actualy ignore unused parameters?

Ales




More information about the fpc-devel mailing list