allow compiler warnings for enums in c/c++