[fpc-pascal] New Warnings with fpc >= 3.2.0 (fredvs)
fredvs
fiens at hotmail.com
Sat Mar 14 17:18:12 CET 2020
Hi Sven, sorry to come back, (dont forget I am a enum-guru now).
But to be totally logic, in the previous code:
> if kind = tabulatorkindty(0) then
Should it not be something illegal because of definition:
> tabulatorkindty =
> (tak_none := 1,tak_left,tak_right,tak_centered,tak_decimal);
the values assigned are tak_none = 1, tak_left = 2, tak_right = 3,
tak_centered = 4, tak_decimal = 5
and 0 is never assigned.
Then (re-imho) there is something strange with initialization with 0 because
0 should be out of range.
Fre;D
-----
Many thanks ;-)
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
More information about the fpc-pascal
mailing list