Is there any option I can turn on, or should I request it as a feature request, to FPC team I guess?
First of, in your specific example
TEnum is located in the
interface-section of the unit, so the compiler
can't warn about the enum value
eB not being used unside the unit
Unit1, because it might be used from another unit.
And secondly enum values can also be accessed through
Str,
Val,
Read(Str/Ln) and
Write(Str/Ln), which complicates things as variables might be used to carry the enum value, thus it's easier and less error prone to simply say nothing for enum values that are not used.