Add a warning for empty enumerations; fixes #7881