Cast instead of #pragma clang diagnostic ignored "-Wassign-enum"
Merge pull request #1265 from 0xced/Wassign-enum-master

Cast instead of #pragma clang diagnostic ignored "-Wassign-enum"