Remove unnecessary #pragma clang diagnostic ignored "-Wassign-enum"

Removes some `#pragma clang diagnostic ignored` pollution in the 2.0 branch. #1263