I'd like to know how I can enable warnings for incorrect enum assignment or being passed as function parameter. Here is an example
TEST_1A = 0,
TEST_2A = 1
TEST_1B = 0,
TEST_2B = 1
If I declare you variables,
Var2 = TEST_1A; // this line should cause a warning.
Can someone please let me know if how to enable this? I've already enabled -Wall but that doesn't seem to work.