[PATCH] Warning for mixing enums of different types