[fpc-pascal] New Warnings with fpc >= 3.2.0

Andrew Hall andrew.hall at shaw.ca
Sat Mar 14 17:31:36 CET 2020

Apologies if already suggested as there are a lot of messages in this thread - but would this meet your needs:

tabulatorkindty = (tak_none=-1,tak_left,tak_right,tak_centered,tak_decimal);

This ensures -1 is a valid enum value so tabulatorkindty(-1) should not raise a warning (I’ve not tried it as still using 3.0.4).


> On 13 Mar 20, at 10:11 , fredvs via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> I vote for keeping type enum + adding at end "tak_nil" in array + 
> initialize "kind := tak_nil".

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20200314/840b64c0/attachment-0001.html>

More information about the fpc-pascal mailing list