See the simple example below. When a function returning one enum is assigned to a variable of a different enum I don\'t get any warning even with <
enum
gcc guys always have a reason not to do somthing.
Use clang with options -Wenum-conversion -Wassign-enum.
-Wenum-conversion -Wassign-enum