Eliminate warning 'ISO C forbids forward references to ‘enum’ types'
Remove warning 'comparison between signed and unsigned integer expressions'