[fpc-pascal] New Warnings with fpc >= 3.2.0 (fredvs)

KBruno Id2 kraybruno at bluewin.ch
Sat Mar 14 11:13:36 CET 2020

A possibility, using your enumeration is to change it from

tabulatorkindty = (tak_left,tak_right,tak_centered,tak_decimal,


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

so a field in an object is by default initialized to tak_none during the 
object's creation. (I generally define mynenum_undef orĀ  mynenum_unknown 
as first item in an enum). This way there is no need to do an 
unnecessary transtyping. Enum items are represented by an unsigned 0 

More information about the fpc-pascal mailing list