Default UENUM value invalid in BP

Hi there!
I’ve stuck on an issue -

Created an enumeration class in cpp:

233404-cppenum.png

And if I try to create a variable of EResolution type and compile it, i get a warning (even after altering default value in blueprint):

But if I compile without any variables of such type, it is all OK:

233407-ok.png

I think it is strange behaviour considering that all EResolution values are within uint8 range.
Need help on fixing this issue.

same behavior in 4.18.3

Changing values of enumerands to defaults fixes issue. But i still don’t understand why i can’t use values as on first screenshot.

I got it.
Enums start from 0 by default, so i needed to add zero for default value:

233426-resolved.png