C51: V7.50 When I try to build the following code, I receive Warning C259, complaining about enumeration types : typedef enum { ZERO, ONE, TWO } Numbers; void main(void) { Numbers e_numbers; e_numbers = (Numbers) ( ZERO |ONE |TWO ); }
"Is it really a meaningful operation to OR members of this enum together?" eg, are you confusing this with a Pascal set...?