Fix dead_code warnings
Merge pull request #272 from areski/pr-fix-enum-c-like

Fix dead_code warnings