enable and fix warnings
Remove unneeded commas behind enums