Ignore if enum is already defined.
Print warning instead of silently ignoring the issue.
Merge pull request #387 from steipete/master

Fixes exception crash if enum is defined more than once.