[fpc-devel] Howto hide Hint: Parameter "yyy" not used

petr.kristan at epos.cz petr.kristan at epos.cz
Wed Oct 8 13:39:31 CEST 2008


On Wed, Oct 01, 2008 at 08:25:54PM +0200, Jonas Maebe wrote:
> It's a good start, but this patch is not ready to be committed:
> a) it is limited to 10 suppressions
> b) people have to look up the error number in the message file first
> c) if you change the limitation in a), the code will become exponentially 
> slower do to having to go over the entire suppression array every time a 
> message has to be shown
>
> A better approach may be to add a method to TMessage (in the cmsg.pas unit) 
> to clear the verbosity level (replace all verbosity indicators with '_'). 
> And to add an option to the compiler to also show the message number when 
> printing output (so people can use this to get the numbers of the messages 
> they want to suppress).
>
>> But I'am not sure if really realized msgtxt.inc rocket science :). That is 
>> why I do not
>> change fpc help message in the patch.
>
> It is automatically generated from compiler/msg/errore.msg (a plain text 
> file) when you make the compiler. So just a patch to 
> compiler/msg/errore.msg is fine.
Hi 

Here is another attempt which respects your comments.

Cmdline option: 
-vm showns msg numbers in listing
-vm11004m1018 disables showing msg numbers 11004 and 1018

Petr

-- 
Ing. Petr Kristan
.
EPOS PRO s.r.o., Bozeny Nemcove 2625, 530 02 Pardubice
tel: +420 466335223    Czech Republic (Eastern Europe) 
fax: +420 466510709
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msg.patch
Type: text/x-diff
Size: 3760 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20081008/7b4b1fca/attachment.patch>


More information about the fpc-devel mailing list